本文是小编为大家收集整理的关于用Visual Studio 2015设置Qt5的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
搜索Google的'QT5 -Windows 10 -vs 2015'仅提出了来自4月的博客文章,该文章说对VS 2015的支持正在进行中(链接).
QT5下载页面(OpenSource版本)当前没有链接的Visual Studio2015.因此,是否可以在VS 2015中使用QT5,还是我只有在出现新事物之前?
ps.我只想避免在VS2015之上安装VS2013.如果需要的话,我可以从来源构建.
预先感谢
推荐答案
我刚刚写一篇小文章,解释了如何与Visual Studio 2015 .
我意识到这绝不是一个很好的答案:虽然它完成了这项工作,但该文章主要依赖于您可以从我的网站下载的帮助者Windows批处理文件.结果,虽然我不打算拉我的网站或文章本身,但其他用户或管理员将有权标记这个答案,因为它太波动了...
无论如何,直到QT人们提供由Visual Studio 2015建造的官方预建二进制文件之前,我相信我的文章节省了一天.希望会有所帮助.
其他推荐答案
qt5.6.0 beta 包括Visual Studio 2015的预制图像.但是,不再支持QT Visual Studio加载项.有一个称为 qt5package p p p qt5package >
我在尝试添加QT 5.6.0 beta时发现了错误,我遇到了错误:"此QT版本使用不支持的makefile Generator(使用:MSVC.NETMSBUILD,支持:MSVC.NET,MSBUILD)".解决方法在C:\ qt \ qt5.6.0 \ 5.6 \ msvc2015 \ mkspecs \ commons \ common \ msvc-desktop.conf qt 5.6.0将所有特定版本特定的更改分解为单独的文件msvc-base.conf.如果您复制此文件的内容并替换MSCV-DESKTOP.CONF中的" Include(msvc- base.conf)"行,则QT5Package识别QT 5.6.0 beta,没有问题.
>请注意,此仍然需要在qt5package中修复.
其他推荐答案
我也有同样的问题.但是我刚刚找到了魔术钥匙.以下链接中的软件包几乎完全具有QT Visual Studio加载项1.2.4对于QT5的行为.它包括完成QT工作所需的一切:
问题描述
Searching Google for 'Qt5 - Windows 10 - VS 2015' only brought up a blog post from April stating that support for VS 2015 is in the works (link).
The Qt5 downloads page (OpenSource version) currently has no links for Visual Studio 2015. So, is it possible to use Qt5 in VS 2015, or do I just have until something new comes up?
PS. I just want to avoid installing VS2013 on top of VS2015. I can build from source should it be needed.
Thanks in advance
推荐答案
I just wrote a small article explaining how to compile Qt 5.5.1 (with QtWebkit) with Visual Studio 2015.
I realize this is by no mean a good answer: while it does the job, that article mostly relies on helper Windows batch files you can download from my site. As a consequence, while I don't plan to pull my site or the article itself, other SO users or admins would be in their right to flag this answer as too volatile...
Anyways, until Qt folks offer official pre-built binaries built with Visual Studio 2015, I believe my article saves the day. Hope that helps.
其他推荐答案
Qt5.6.0 Beta includes a prebuilt image for Visual Studio 2015. However, the Qt Visual Studio add-in is no longer supported. There's an extension called Qt5Package you can install instead.
I found when I tried to add Qt 5.6.0 Beta in the extension I got the error "This Qt version uses an unsupported makefile generator (used: MSVC.NETMSBUILD, supported: MSVC.NET, MSBUILD)". The workaround is in C:\Qt\Qt5.6.0\5.6\msvc2015\mkspecs\common\msvc-desktop.conf Qt 5.6.0 splits all the version-specific changes into a separate file msvc-base.conf. If you copy the contents of this file and replace the line "include(msvc- base.conf)" in mscv-desktop.conf then Qt5Package recognises the Qt 5.6.0 Beta with no problems.
Note this still needs to be fixed in Qt5Package.
其他推荐答案
I had the same problem. But I've just found the magic key. The package in the following link has almost exactly the behavior of Qt Visual Studio Add-in 1.2.4 for Qt5. It includes everything needed to complete the work with Qt:
https://visualstudiogallery.msdn.microsoft.com/c89ff880-8509-47a4-a262-e4fa07168408