一般的qmake生成的Makefile是没有

make install的

方法:

在.pro中做文章

比如你要安装libEbookDataBase.so*到目录 /usr/local/lib

.pro中加入

inst.files += libEbookDataBase.so*

inst.path = /usr/local/lib

INSTALLS += inst

 

qmake

make

make install

就可以了

 

参考:

http://qt-project.org/doc/qt-5/qmake-advanced-usage.html

 

另外,头文件如果有x权限,需要去掉,否则install时候会strip,导致出错

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2021-09-17
  • 2021-08-27
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-10-26
  • 2021-09-06
相关资源
相似解决方案