Qt5: qmake’s mkspec path location
Hi,
I’ve downloaded the Qt5 beta snapshot [1] on both Linux and Windows. In both cases the qmake is looking in a location which is specific to who I assume is a Qt developer:
Could not find mkspecs for your QMAKESPEC after trying: D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-5.0.0/qtbase/mkspecs
Now I have installed this Qt5 build in: C:\Qt\5.0.0-beta-snapshot\ and updated my path environment variable, qmake is definitely being used from where I expect it to be, however its not looking in the correct path for the mkspecs.
The question is: How can I override where qmake looks for the QMAKESPEC’s config files/folders?
6 replies
Set the QTDIR environment variable.
Thanks but that didn’t help, is that the only way to set the QMAKESPEC folder in qmake?
C:\git\elm.lynx>echo QTDIR
C:\Qt\5.0.0\
C:\git\elm.lynx>qmake diagram.pro
Could not find mkspecs for your QMAKESPEC after trying:
D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-
5.0.0/qtbase/mkspecs
Error processing project file: diagram.pro
C:\git\elm.lynx>which qmake
/cygdrive/c/Qt/5.0.0/bin/qmake
Try to add an appropriate qt.conf file in that bin dir where your qmake is located.
See: qt.conf [doc.qt.nokia.com].
You must log in to post a reply. Not a member yet? Register here!


