QMAKESPEC has not been set
Dear all,
I am very new to Qt,
I am working on SuSe 10.1, K.D.E 3.5.1
Here I want to run a simple Qt program..
Can you please help me..
linux:~/hello # /root/qt_src/qt/bin/qmake -project
linux:~/hello # /root/qt_src/qt/bin/qmake -o Makefile
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /root/hello/hello.pro
You have new mail in /var/spool/mail/root
linux:~/hello # ls
hello.cpp hello.pro
linux:~/hello # /root/qt_src/qt/bin/qmake -o hello.pro
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /root/hello/hello.pro
Thanking you in advance,
Regards
Jivan
Re: QMAKESPEC has not been set
Typically you don't need to set this variable. But I keep stumbling across cases, like yours, where qmake demands it.
The makespec for SuSE is linux-g++. You can set this as an environment variable in your .bashrc (or elsewhere) by adding the line:
export QMAKESPEC=linux-g++
Or you can use the -spec option to qmake:
qmake -spec linux-g++ -o Makefile