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

假设已安装动态版位置:

/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

你可能感兴趣的:(QT)