如何修复Qt 5.6 beta和VS2015的QT VS加载项? [英] How to fix QT VS Add-in for Qt 5.6 beta and VS2015?

查看:867
本文介绍了如何修复Qt 5.6 beta和VS2015的QT VS加载项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我自己没有编译Qt,而是使用官方Qt网站上的安装程序(几天前就有5.6测试版)。安装成功,Qt文件夹conatins bin文件夹与qmake和一切。在Qt Creator中构建应用程序。

I did not compile Qt myself, rather I used installer from official Qt website (5.6 beta is available since few days ago). Installation was successful, Qt folder conatins bin folder with qmake and everything. Building apps in Qt Creator works.

然而,当我尝试使用VS addin 1.2.5.9启动Qt时出现错误

However, when I try to launch Qt using VS addin 1.2.5.9 I get error


找不到默认的Qt版本。请检查您的Qt Visual Studio加载项
设置。

No default Qt version found. Pleae check your Qt Visual Studio Add-in settings.

我已编辑 QT5 - > ; Qt选项包含到5.6 beta的正确Qt路径,错误仍然存​​在。

I have edited QT5 -> Qt Options to contain the correct Qt path to 5.6 beta, error still persists.

我还添加了 QTDIR 进入Windows 10中的路径。

I have also added QTDIR into Path in Windows 10.

我使用的是Visual Studio 2015社区版

I am using Community Edition of Visual Studio 2015

如何解决这个问题?在VS下创建新的Qt项目也失败了。

How to fix this? Create new Qt project under VS fails as well.

推荐答案

Visual Studio 2015中不再支持Qt Visual Studio加载项。
Microsoft决定弃用Visual Studio 2013中的AddIn支持,并且使用Visual Studio 2015已删除对它的所有支持。 https://bugreports.qt.io/browse/QTVSADDINBUG-404 涵盖了这一点。 。但是,您可以安装名为 Qt5Package 的扩展程序。

The Qt Visual Studio add-in is no longer supported in Visual Studio 2015. Microsoft decided to deprecate AddIn support in Visual Studio 2013 and with Visual Studio 2015 all support for it has been removed. This is covered in https://bugreports.qt.io/browse/QTVSADDINBUG-404. However, there's an extension called Qt5Package you can install instead.

当我尝试在扩展程序中添加Qt 5.6.0 Beta时发现我收到错误此Qt版本使用不受支持的makefile生成器(使用:MSVC.NETMSBUILD,支持) :MSVC.NET,MSBUILD)。解决方法位于C:\ Qt \ Qt5.6.0 \ 5.6 \msvc2015 \mkspecs \ commmon \ msvc-desktop.conf Qt 5.6.0将所有特定于版本的更改拆分为单独的文件msvc- base.conf。如果您复制此文件的内容并替换mscv-desktop.conf中的include(msvc-base.conf)行,那么Qt5Package会识别Qt 5.6.0 Beta,没有任何问题。

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.

注意这仍然需要在Qt5Package中修复。

Note this still needs to be fixed in Qt5Package.

这篇关于如何修复Qt 5.6 beta和VS2015的QT VS加载项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆