QT5.10开发(3) 在linux下使用编译 静态链接Qt 5.10 release版的详细过程

本文提供 Qt5.10.0 版本的静态编译步骤,包括源码下载、配置选项说明、编译及安装过程。适合希望深入了解 Qt 编译细节的技术人员。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

假设已安装动态版位置:

/opt/Qt5.10.0/

下载源码

前往官网下载源码包:qt-everywhere-src-5.10.0.tar.xz

解压

tar xvf  qt-everywhere-src-5.10.0.tar.xz

配置:

cd  qt-everywhere-src-5.10.0

./configure  -confirm-license -opensource -platform linux-g++ -mp -release -static -static-runtime -ltcg -prefix "/opt/Qt5.10.0/" -qt-sqlite -qt-pcre  -plugin-sql-sqlite -plugin-sql-odbc -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -no-qml-debug -no-angle -no-compile-examples    -nomake tools  -nomake tests -nomake examples -skip qtwebengine

编译

make

安装

make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值