1 Linux Qt-5.12.1静态编译
声明:以下仅为个人经验,若有错误地方望指正
1.1 下载Qt-5.12.1源码
下载网站:https://download.qt.io/archive/qt/5.12/5.12.1/single/
下载qt-everywhere-src-5.12.1.tar.xz的压缩包
解压tar.xz文件:先 xz -d xxx.tar.xz 将 xxx.tar.xz解压成 xxx.tar 然后,再用 tar xvf xxx.tar来解包
1.2 确认make存在
(1)使用 make -v 查看make是否存在
(2)若不存在则使用sudo apt install make安装make
1.3 configure生成Makefile
./configure -static -release -qt-zlib -qt-libpng -qt-libjpeg -nomake examples -nomake tests -no-opengl -prefix /home/ubuntu16/Desktop/wubw/Qt-5.12.1-static -skip qttools -skip qtsensors -skip qtconnectivity -skip qtserialport -skip qtmultimedia
虚拟机:
./configure -static -release -qt-zlib -qt-libpng -qt-libjpeg -nomake examples -nomake tests -no-opengl -prefix /home/qtOpenSource/Qt-5.12.1-static -skip qttools -skip qtsensors -skip qtconnectivity -skip qtserialport -skip qtmultimedia
参数-static 指的是要