qmake set install directory

jmilloy picture jmilloy · Dec 9, 2013 · Viewed 7.2k times · Source

I'm trying to build Qwt to a custom location. The obvious thing to try is a PREFIX option, but it had no effect and the make install still failed:

$ qmake qwt.pro PREFIX='/my/path'
$ make
$ make install
mkdir: cannot create directory `/usr/local/qwt-5.2.3': Permission denied

There seem to be numerous other questions and answers to this question, which also have no effect and fail:

Any other suggestions?


QMake version 2.01a
Using Qt version 4.5.3 in /opt/Qt4/4.5.2/qtsdk-2009.04/qt/lib
RHEL 5.10

Answer

George Y. picture George Y. · Dec 10, 2013

Try to edit the qwtconfig.pri file in the source directory, it has the installation path hardcoded for different platforms, as well as many other options you might want to change.