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:
- How to change qmake PREFIX location:
qmake -set prefix '/my/path'
- How can the install path be set for a qt project:
make; INSTALL_ROOT=/my/path; make install
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
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.