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(win32-msvc2010) after trying:
D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-5.0.0/qtbase/mkspecsNow 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?
-
Set the QTDIR environment variable.
-
[quote author="sierdzio" date="1341832904"]Set the QTDIR environment variable.[/quote]
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(win32-msvc2010) after trying:
D:/jenkins/workspace/qt5-beta-bin-msvc2010/qt-everywhere-opensource-src-
5.0.0/qtbase/mkspecs
Error processing project file: diagram.proC:\git\elm.lynx>which qmake
/cygdrive/c/Qt/5.0.0/bin/qmake -
@
qmake -spec /path/to/qmakespec diagram.pro
@ -
Or compile Qt yourself to be 100% sure.
-
Thanks for your reply that worked. However I ran into another stumbling block right after that one. I'll compile from source I think...
-
Try to add an appropriate qt.conf file in that bin dir where your qmake is located.
See: "qt.conf":http://doc.qt.nokia.com/4.7-snapshot/qt-conf.html.