Solved New install, Problems compiling some examples
-
@jsulm I have reinstalled msvs2012, and it installed it in a file that is labelled
Microsoft Visual Studio 12.0\VC\bin that was there previously but I had assumed was an
older studio, so cl.exe is there! we are back to square 1 -
@wazza Che3ck the Kit in QtCreator you're using: are there any warnings/errors?
-
@jsulm when I first installed qt the only kit warning was for the cdb.exe debugger and I just pointed it to the debugger yesterday
-
@wazza One moment: didn't you install Qt for VC2013 and not 2012? If so then you need VC2013 compiler.
-
@jsulm Yes it is installed qt for VC2013 I have installed VC2013 with the c++ cl.exe it is just installed in a path labelled C:\Program Files (x86)\Micrsoft Visual Studio 12.0\VC\bin the 12.0 is the version number of VC2013 as 2013 spand two versions 11.0 and 12.0
-
@wazza OK, I saw "I have reinstalled msvs2012".
Can you create a simple console project in QtCreator and try to build it (without changing anything)? -
@jsulm yes sorry about that, yes I can do simple console application and it builds and runs without a problem
(well except for a missing ; my bad ) also other c++ applications in the examples are ok as well and I have noticed the ones that are not building and giving problems are some of the QML and data visualisation examples
i have built some of the qml examples and the build ok -
@jsulm I have uninstalled everything and just installed VC2015 and then installed qt5.8 MSVS2015 and the examples build and run without issues. it was a whole day operation! but thank you for all the help and the questions you asked helped me to understand the way QT works.
-
@wazza said in New install, Problems compiling some examples:
Understand the way QT works.
Actually its not really related to Qt but how DLLS works.
a DLL contains code, both functions, and classes.
To use the classes from another app, then both app and DLL should be compiled with
somewhat THE SAME compiler as else it cannot use these classes at all.So that is why
Qt2015 MUSt be with VS 2015 compiler
or
Qt mingw must be with mingw compiler
and that Qt 20143 do not work with Vs 2015 :) -
@mrjj I was using QT2013 with VS2013 as I have had vs2013 and vs2012 installed on this machine for over 3 years I used the online installer and it installed qt5.8MSVS2013 kit I had the c++ compiler package installed on both VS packages and I do believe that is where the issues were orriganating. the issue was resolved once I uninstalled the VS packages and Qt I the installed VS2015 with C++ and the offline Qt installer for 5.8 MSVS2015.
when I referred to how qt works I meant how the build process works with the packages his questions forced me to look under the hood so to speak -
@wazza
Ok :)
I didnt know that "2013 spands two versions 11.0 and 12.0"
Thats good info.