I downloaded the whole qtSDK and installed it. Then i launched the qtCreator and try to run the Hello-World-Program as a qt console application. It didnt compile and said that it couldnt find "cl". So I researched on the internet and made a batch file containing
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
start C:\QtSDK\QtCreator\bin\qtcreator.exe
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin
start C:\QtSDK\QtCreator\bin\qtcreator.exe
To copy to clipboard, switch view to plain text mode
That fixed the error about the missing "cl"-file, but the jom.exe still exits with code 2 and doesnt compile:
jom 1.0.6 - empower your cores
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
12:30:35: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project Hello2 (target: Desktop)
When executing build step 'Make'
jom 1.0.6 - empower your cores
command failed with exit code 2
command failed with exit code 2
command failed with exit code 2
12:30:35: The process "C:\QtSDK\QtCreator\bin\jom.exe" exited with code 2.
Error while building project Hello2 (target: Desktop)
When executing build step 'Make'
To copy to clipboard, switch view to plain text mode
I hope you can help me.
PS: My program code looks like this, but i doubt, thats the problem:
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[])
{
return a.exec();
}
#include <QtCore/QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I have installed VS 2010 Express Edition and am using Windows 7 64 bit OS.
Bookmarks