
- 源码下载
- 依赖安装
- configure参数
- 编译安装
下载地址:https://download.qt.io/archive/qt/5.15/5.15.2/single/qt-everywhere-src-5.15.2.tar.xz
依赖安装参考:https://doc.qt.io/qt-5/linux-requirements.html
configure参数这个可以根据自己需要调整需要编译的模块,我的配置是这样的:
./configure -prefix /data/qtInstall/ -release -opensource -make libs -optimized-qmake -pch -qt-libjpeg -qt-zlib -no-opengl -skip qt3d -skip qtcanvas3d -skip qtpurchasing -no-sse2 -no-openssl -no-cups -no-glib -no-iconv -nomake examples -nomake tools -skip qtvirtualkeyboard -skip qtlocation -xcb编译安装
configure运行完成后,如果没有报错,下面就可以继续编译了,为了了解编译过程报错情况,我们把错误日志记录下来:
make -j16 2>make.error.log #install make install #安装路径为prefix指定的路径
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)