July 9, 2012

PhilHannent PhilHannent
Lab Rat
3 posts

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?

[1] http://qt-project.org/wiki/Qt-5-Binary-Installers

6 replies

July 9, 2012

sierdzio sierdzio
Area 51 Engineer
2536 posts

Set the QTDIR environment variable.

 Signature 

(Z(:^

July 9, 2012

PhilHannent PhilHannent
Lab Rat
3 posts
sierdzio wrote:
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

July 9, 2012

sierdzio sierdzio
Area 51 Engineer
2536 posts

  1. qmake -spec /path/to/qmakespec diagram.pro

 Signature 

(Z(:^

July 9, 2012

sierdzio sierdzio
Area 51 Engineer
2536 posts

Or compile Qt yourself to be 100% sure.

 Signature 

(Z(:^

July 9, 2012

PhilHannent PhilHannent
Lab Rat
3 posts

Thanks for your reply that worked. However I ran into another stumbling block right after that one. I’ll compile from source I think…

July 9, 2012

franku franku
Hobby Entomologist
132 posts

Try to add an appropriate qt.conf file in that bin dir where your qmake is located.

See: qt.conf [doc.qt.nokia.com].

 Signature 

Keep in mind: This, Jen, is the internet.
.. frank

 
  ‹‹ cross compile Qt 5 error      Qt5: WebKit2 build [solved] ››

You must log in to post a reply. Not a member yet? Register here!