How to change qmake PREFIX location

Stan picture Stan · Feb 1, 2013 · Viewed 9.7k times · Source

I used below commands to install some stuff.

qmake PREFIX=/path/to/my/dir
make
make install

However the path I gave was wrong, how do I update PREFIX to the right location and remove the old install, then install again?

I tried:

rm -rf /path/to/my/dir/bin    # this is where the program being installed
qmake PREFIX=/path/to/correct/dir
make
make install

But it's still being installed to the old path.

Answer

tenfishsticks picture tenfishsticks · Mar 8, 2013

According to "qmake -h", this would set it globally:

qmake -set prefix /path/to/correct/dir