How to fix QT VS Add-in for Qt 5.6 beta and VS2015?

前端 未结 1 1768
[愿得一人]
[愿得一人] 2021-01-21 17:40

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 fol

1条回答
  •  鱼传尺愫
    2021-01-21 18:21

    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.

    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.

    0 讨论(0)
提交回复
热议问题