[ACCEPTED]-QMAKE: QMAKESPEC has not been set-qmake

Accepted answer
Score: 24

Just add this to a script before running 1 qmake

Unix Bourne shell:

        export QMAKESPEC PATH

Unix C shell:

        setenv QMAKESPEC /usr/local/qt/mkspecs/linux-g++
        setenv PATH $PATH:/local/qmake/bin

Microsoft Windows:

        set QMAKESPEC=c:\qt\mkspecs\win32-msvc
        set PATH=%PATH%;c:\qmake\bin

qmake is now installed.

Score: 2

if you are lazy to do extra set-env stuff, do 2 here is a one liner:

    qmake -spec c:\qt\mkspecs\win32-msvc myproject.pro

same goes for other 1 platforms

Score: 1

I had the same problem and solved it by 1 installing the libqt4-dev package.

Score: 1

From 4.8 on, qmake has a system of persistent 4 information that can be defined using the 3 -set option, and consulted using -query.

For more 2 detail, consult the Configuring qmake's Environment for qmake 4.8, and 1 Configuring qmake for qmake 5.0.

Score: 0

Ok, sorry, I think I know what's the problem. I 4 have been picking up qmake from the old 3 Qt installation that was left in /usr/bin/. I 2 have deleted it now, and going to re-try 1 installing Qt. Hope it will work =)

More Related questions