PDA

View Full Version : qmake -query and installation directories



elemings
23rd February 2009, 17:52
If this question is already addressed somewhere, apologies. Just point me to the answer.

After building Qt in build directory X, I do a 'nmake INSTALL_ROOT=Y install' (on a Windows platform). Afterwards, if you run 'qmake -query QT_INSTALL_LIBS', the pathname still points to the build directory rather than the install directory. :confused:

Am I doing something wrong? Is there a workaround?

Thanks.

wysota
24th February 2009, 00:43
There used to be a -prefix option for configure for Windows but I heard it's not there anymore :( So other than patching the qmake binary there is probably no alternative. You might try with environment variables (QTDIR maybe? Or QMAKESPECS pointing to the absolute path to the proper specs file).

elemings
24th February 2009, 16:50
... You might try with environment variables (QTDIR maybe? Or QMAKESPECS pointing to the absolute path to the proper specs file).

I had QTDIR set so I know that doesn't work so I doubt QMAKESPECS will either but its worth a shot.

Hmm. I wonder how the downloadable Qt intstaller program handles this: it works like it should.

wysota
24th February 2009, 19:37
It patches the qmake binary after the files are copied.