PDA

View Full Version : QMAKESPEC has not been set



jivanr
8th June 2007, 14:52
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

Brandybuck
8th June 2007, 18:00
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