Jom Error 2 at compile time
-
Please share the content of your pro file.
-
Here you are:
@#-------------------------------------------------
Project created by QtCreator 2012-05-07T15:34:34
#-------------------------------------------------
QT += core gui
TARGET = test
TEMPLATE = appSOURCES += main.cpp
mainwindow.cppHEADERS += mainwindow.h
FORMS += mainwindow.ui
@ -
Seems that the pro file is fine.
[quote author="Saphrosit" date="1336399160"]
I don't know if it's relevant or not, but before getting this error I got the common error about cl not found; I solved adding the path to cl in the project settings.
[/quote]Did you make a clean build after that? Clean, rerun qmake and rebuild the whole project.
-
[quote author="Saphrosit" date="1336404861"]Yes I did it, but I keep getting the same error...
I tried also to reinstall the entire SDK, but nothing changed[/quote]
Please try this proposition from a "similar issue with jom described at stackoverflow.com":http://stackoverflow.com/questions/9408466/qt-compile-time-error
bq. I can reproduce this problem if I check "Clear system environment" on the Projects' Build Settings page. Try unchecking that box.
-
Saphrosit: Oh, that should not happen! What is your PATH environment variable with clear system environment set? Where did you install the cl.exe? What did you install to get the compiler?
-
Unfortunately I cannot give an exact answer now (the computer is at the lab), I hope I will answer tomorrow. Anyway, I'm pretty sure cl.exe is the default Microsoft Visual Studio 9 folder.
However, in my home system my "Clear system environment" is not check and everything works fine (I have Visual Studio 10 at home)...