Qt 5.2 & VC2012 - ‘cl’ is not recognized as an internal or external command
I have installed Qt Creator 2.7.0 and Qt 4.8.4 with Visual Studio Express 2010, I just installed Qt 5.2 with Qt Creator 3.0 and Visual Studio Express 2012, I restart the computer, created a basic project and compile it tells me
@'cl' is not recognized as an internal or external command@
I tried various solutions listed in this forum how to add the 'cl.exe' path to the PATH variable (C:\Program Files (x 86) \Microsoft Visual Studio 11.0\VC\bin), also executed C:\Program Files (x 86) \Microsoft Visual Studio 11.0\VC\vcvarsall.bat but still get this error
This computer has Windows 7 64-bit and Visual Studio Express 2012 settled for 32- and 64-bit
I noticed that in Qt Creator 2.7.0, in Tools-> Options-> Build & Run-> Kits I have this error, and when clicking on Auto-detect sets the path for the 64-bit Visual Studio Express 2012 debugguer
!http://dysd.com.ar/imgtmp/qtcreator.png(Qt Creator 2.7.0 Kits)!
Thank you very much for any help you can give me
Hi, and welcome to the Qt Dev Net!
Use Qt Creator 3.0 (the one that came with Qt 5.2), not Qt Creator 2.7 (the one that came with Qt 4.8.4).
Also, that red exclamation mark next to your kit shows an error. Mouse-over the red icon to see details -- these details will be useful if you run into any other issues.
Finally, remove Qt and Visual Studio from your PATH. You don't need them in your PATH, and having them there is known to cause issues.
I'm using Qt Creator 3.0 with Qt 5.2
The image is from Qt Creator 2.7
Look in "GDB Engine using", thats isnt a path, that is the error in Qt Creator 2.7 using Qt 4.8.4 with MSVC2010 after installing Qt 5.2 with Qt Creator 3.0 and Visual Studio 2012
It is very possible that my message is not understood fully clarified:
I have previously installed Qt Creator 2.7 with Qt 4.8.4 and Visual Studio 2010 and using for a long time without any problem
Today I installed Qt 5.2 with Qt Creator 3.0 and Visual Studio 2012
When I create a simple application with Qt Creator 3.0 and Qt 5.3 with MSVC2010, to compile it reports me the error 'cl' is not recognized as an internal or external command
Ok, thanks for clarifying. To check that I've understood correctly this time: You were using Qt Creator 2.7 before with Qt 4.8.4 + MSVC 2010, and it was working fine. However, it broke when you installed Qt Creator 3.0 + Qt 5.2 + MSVC 2012 -- is this correct?
I recommend Using Qt Creator 3.0 for Qt 4.8.4 too. It has many improvements over Qt Creator 2.7. Do these in Qt Creator 3.0 (but each step can be skipped if the item is already auto-detected):
Add Qt 4.8.4 to your "Qt Versions" tab: http://qt-project.org/doc/qtcreator-3.0/creator-project-qmake.html
Add MSVC 2010 to your "Compilers" tab: http://qt-project.org/doc/qtcreator-3.0/creator-tool-chains.html
Combine the above in you "Kits" tab: http://qt-project.org/doc/qtcreator-3.0/creator-targets.html
Remember, remove MSVC and Qt from your PATH first.
Hello JKSH, I do not have answered before by the holidays without work,
bq. Ok, thanks for clarifying. To check that I’ve understood correctly this time: You were using Qt Creator 2.7 before with Qt 4.8.4 + MSVC 2010, and it was working fine. However, it broke when you installed Qt Creator 3.0 + Qt 5.2 + MSVC 2012 — is this correct?
Yes, it's correct
I have followed the four steps I provided (remove Qt and VC's path included) but I'm still the same problem
This is the screenshot of the build