QT版本:QT5.12.10
QT安装过程忽略
配置如下(跳过qt3d,qtwebengine模块,此两个模块需要单独编译):
Only Release(用此版本QT静态库编译的只能是Release版本,Debug是否可行->未知)
./configure -static -release -opensource -confirm-license -prefix /home/jacklee/Qt5.12.10/5.12.10/mingw73_64-static -make libs -nomake tools -nomake examples -nomake tests -skip qt3d -skip qtdoc -skip qtwebengine
上面代码中
/home/jacklee/Qt5.12.10/5.12.10/mingw73_64-static
这个地址是QT编译完毕后的安装地址,根据自己需求修改。
当然如果需要跳过其他模块,请参考我另外一个文章->QT静态编译
配置完毕后我们进入编译:
make install -j10
大概需求时间根据硬件性能而定
编译完毕后即可启动QT在设定中增加刚才编译出来的QT静态库