如何更改qmake PREFIX位置 [英] How to change qmake PREFIX location
本文介绍了如何更改qmake PREFIX位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用下面的命令来安装一些东西.
I used below commands to install some stuff.
qmake PREFIX=/path/to/my/dir
make
make install
但是我给出的路径错误,如何将PREFIX更新到正确的位置并删除旧的安装,然后再次安装?
However the path I gave was wrong, how do I update PREFIX to the right location and remove the old install, then install again?
我尝试过:
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.
推荐答案
根据"qmake -h",这将对其进行全局设置:
According to "qmake -h", this would set it globally:
qmake -set prefix /path/to/correct/dir
这篇关于如何更改qmake PREFIX位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文