Qt Creator build example error, configuration problem, cl not found
-
wrote on 3 Jul 2013, 14:11 last edited by
hello
I’m new for Qt,I installed qt for msvc2010, i have VS 2010 installed, when I load a example and try to run or build have error in compiled output with cl not found. -
Hi,
Follow these guides to "tell Qt Creator where to find your compiler":http://qt-project.org/doc/qtcreator-2.7/creator-tool-chains.html, and then "add a Kit":http://qt-project.org/doc/qtcreator-2.7/creator-targets.html
After that, you'll need to re-configure your example project (open it, and then click on "Projects" on the left of Qt Creator)
-
wrote on 3 Jul 2013, 15:48 last edited by
hi, I review the post recomended, but in my case I do not have to add any compiler because it is autodetected by Qt "Microsoft Visual C++ compiler" 10.0(x86) and example are in "C:\Qt\Qt5.0.2\5.0.2\msvc2010" so i think that it is right configured!!!
-
What Kit is your project using?
-
wrote on 4 Jul 2013, 12:18 last edited by
I used this Kit "Desktop Qt 5.0.2 MSVC2010 32bit"
-
Open Tools -> Options -> Build & Run -> Kits
Do you see a yellow or red error icon next to "Desktop Qt 5.0.2 MSVC2010 32bit"? If so, what does it say?
Which example are you trying to build?
-
wrote on 5 Jul 2013, 13:55 last edited by
I see yellow icon and this happen with everything, that include one new project created by me.
-
Yellow icon means that your Kit is not set up properly -- either your Qt Version and/or your Compiler is not set up properly.
Hover your mouse over the yellow icon, and a box should pop-up. Post the error/warning here (or take a screenshot)
-
wrote on 5 Jul 2013, 20:46 last edited by
I searched about this problem, and after so much time I find a soluction for this, the cause of the problem is unknow for me, but work fine I did a .bat file with this code:
call "C:\Archivos de programa\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
"C:\Qt\Qt5.1.0\Tools\QtCreator\bin\qtcreator"so I have to run vcvars32.bat before the qtcreator. I think that is not ideal soluction but it is the only one found up to this moment.
9/9