Visual studio 2017: QT Add-in

一笑奈何 提交于 2019-12-10 11:35:09

问题


I've installed Visual Studio 2017 and QT 5.8.

Now I installed a QT-Add-in(from here) and I wanted to add the Path of QT 5.8 in Qt Options(in Visual Studio).

But I get an error like : "This QT version uses an unsupported makefile generator (used: MINGW, supported: MSVN.NET, MSBUILD)"

Is there a workaround or a way to fix this problem ?


回答1:


The Qt that you're attempting to use has not been compiled with a binary-compatible compiler - either Visual Studio 2015 or Visual Studio 2017. You'll have to download Qt for MSVC2015, or build it yourself.




回答2:


The think problem lies with what package you installed. I found, after I downloaded the add-in and downloaded the binaries, that I had downloaded the wrong binaries. What I did to fix the problem is I deleted my current installation of QT and reinstalled them (using QT's online installer) after unchecking the default MinGW binaries and checking the box for MSVC-2017-x64. Here is a picture, if that helps After installing that, I was able to correctly add the binaries to the path.




回答3:


The Qt Visual Studio Tools for VS2017 is now in Beta: https://blog.qt.io/blog/2017/08/03/qt-visual-studio-tools-version-2-1-2-beta/

It will be updated through the Visual Studio Marketplace from now on.




回答4:


My friend was suffering with qt because it does not work with visual studio 2017, today 08/14/2017 I downloaded the free version online, and in the components I unchecked MinGW and marked MSVC 2017 (But it only has the 64 bit version when I downloaded it today ).

Installation occurred normally and the result was this:

I wish good luck with your project, the version of qt I am using is 5.9.1




回答5:


I was able to get v2.2 to work on VS2017. However, when I closed Visual Studio and opened it up again, it did not work anymore. This is because VS upgraded the app to version 2.3 which did not work. I uninstalled 2.3, re-installed 2.2 and uncheck the auto update check box.



来源:https://stackoverflow.com/questions/44287471/visual-studio-2017-qt-add-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!