CL not recognized
This is my first time I have installed QT creator. Then I installed MSVC 2010, and the compiler(s) appeared in QTCreator. I have also added CL.exe to my path, but when I ran my first application, I received the following error:
@'cl' is not recognized as an internal or external command,
operable program or batch file.
jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\main.obj] Error 1
jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile.Debug [debug\mainwindow.obj] Error 1
jom: C:\Users\Brian\QTProjects\ImagineInventory-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug\Makefile [debug] Error 2
19:14:02: The process "C:\Qt\Qt5.0.0\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project ImagineInventory (kit: Desktop Qt 5.0.0 MSVC2010 32bit (SDK))
When executing step 'Make'@
How should I fix this?
tobias.hunger last edited by
You should not need to add anything to your PATH, creator should do that for you.
MSVC 2010 is detected in a lot of different flavors and a coworker recently found that not all of those are installed in all circumstances, so we sometimes show MSVC flavors that are not actually there (fixed in master;-). So try switching to a different flavor of the compiler. Does that fix the issue?
[quote author="Tobias Hunger" date="1358761957"]You should not need to add anything to your PATH, creator should do that for you.
When would it do that?
[quote author="Tobias Hunger" date="1358761957"]So try switching to a different flavor of the compiler. Does that fix the issue?[/quote]
What do you mean by a different flavor?
BelenMuñoz last edited by
I had the same problems a few days ago and I solved it executing vcvarsall.bat before (I was using nmake) it's suposed to add the variable to the path.
I hope it can help you.
I tried that:
@C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC> vcvarsall.bat
ERROR: Cannot determine the location of the VS Common Tools folder.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>@
[My operating system is Windows 7 64bit. Besides Qt and VSC++, I also have RAD Studio XE3 installed (C++, Delphi, HTML5Builder, and Prism).]
BelenMuñoz last edited by
It's a problem with VS Common Tools.
I've found this thread, hope you find something useful.
I read the first forum, and there was a link to another forum. I couldn't make heads or tails of the second; the first was helpful, but the suggestion that the environmental variable was not set was not true for my machine.
are you using msvc2010 express ?
[quote author="seahumad" date="1359174961"]are you using msvc2010 express ?[/quote]
Yes I am.
See the workaround for msvc2010 express 64 bit here http://qt-project.org/wiki/Qt500Beta2KnownIssues
When installing the SDK I get an error, and it just says to check the log.
well .. this is a windows/msvc problem rather than a Qt problem
[quote author="seahumad" date="1359209110"]See the workaround for msvc2010 express 64 bit here http://qt-project.org/wiki/Qt500Beta2KnownIssues[/quote]
I think that this worked (I had uninstall MSVC++ first then reinstall after the SDK installed). However, now when I compile most example programs, I get the error:
@error: LNK1104: cannot open file 'gdi32.lib'@