1 Attachment(s)
Qt in given path was build using MinGW
Hi guys,
I'm trying to set up the VS extension for QT but when I try to give the QT path it gives me this error.
Attachment 12561
I'm using VS 2017 Community edition and I've installed the latest QT version from here:
QT open source download page
How do I get this working?
Re: Qt in given path was build using MinGW
As the error says, you installed a MinGW built Qt.
If you want to use Qt with Visual Studio you need to install a visual studio built Qt.
As far as I can see on the download page only MSVC 2015 is supported, I don't know if MSVC 2017 will be compatible, you can try.
http://download.qt.io/official_relea...5_64-5.6.2.exe
Or, you can get the latest source of Qt5.9.1 and build it with your visual studio.
1 Attachment(s)
Re: Qt in given path was build using MinGW
Thank you for your reply.
After removing the incorrect installed version and installed the correct one I was able to create a sample project.
However, when trying to build it, I was prompted with the following list of errors. May this error be related with the fact that I've installed QT for VS 2015, while I have the VS 2017 installed?
Attachment 12562
Re: Qt in given path was build using MinGW
Hard to tell as the screenshot is both hard to read due to low resolution and what I can make out is that it seems there is a problem with the include of the ui file.
The errors indicate that include paths to math lib and probably others are missing.
It has been years since I worked with visual studio, so I can't really say where you can check to make sure these include paths are set and correct.
Either someone else here can help you with that, or you could also try a visual studio related forums.
Re: Qt in given path was build using MinGW
Hello guys,
I was able to fix my environment after looking in the Output view, instead of the Error List:
Code:
1>------ Rebuild All started: Project: QtGuiApplication1, Configuration: Debug x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\v141\Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
1>Done building project "QtGuiApplication1.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Unfortunately, I need to make this change each time I create a new qt project.
@high_flyer thank you once again for your help!