qmake -query and installation directories
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.
Re: qmake -query and installation directories
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).
Re: qmake -query and installation directories
Quote:
Originally Posted by
wysota
... 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.
Re: qmake -query and installation directories
It patches the qmake binary after the files are copied.