rk开发板上编译qt 5.15.2源码
1.下载qt 5.15.2 源代码包
https://download.qt.io/archive/qt/5.15/5.15.2/single/
下载:qt-everywhere-src-5.15.2.tar.xz
2.解压tar包
tar -xvf qt-everywhere-src-5.15.2.tar.xz
cd qt-everywhere-src-5.15.2
3.配置configure.sh
touch congfigure.sh
vim congfigure.sh
在configure中添加如下内容:
#!/bin/bash
./configure -prefix /home/qt5.15.2-arm \
-L /usr/lib/aarch64-linux-gnu \
-opensource -confirm-license \
-release \
-optimize-size \
-no-pch \
-nomake examples -nomake tests \
-skip qtdeclarative -skip qtsvg -skip qtquickcontrols -skip qtquickcontrols2 \
-skip qtgraphicaleffects -skip qtvirtualkeyboard -skip qtwebchannel \
-skip qtwebengine -skip qtwebsockets -skip qtwebview \
-skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtcharts \
-skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad \
-skip qtlocation -skip qtmacextras \
-skip qtnetworkauth -skip qtpurchasing -skip qtremoteobjects -skip qtscript \
-skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport \
-skip qtspeech -skip qttools -skip qttranslations \
-skip qtwayland -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns \
-qt-libjpeg -qt-libpng -qt-zlib -qt-pcre -qt-freetype \
-xcb -xcb-xlib -xkbcommon \
-eglfs -linuxfb -xcb -gbm -kms \
-opengl es2 \
-icu \
-sql-sqlite \
-feature-accessibility \
-v
说明:-prefix /home/qt5.15.2-arm 安装到用户目录,避免需要root权限
-L /usr/lib/aarch64-linux-gnu 编译依赖库的位置,自己配置,也可以不要这一项
-skip 跳过模块,根据自己需要选择是否跳过
4.编译
make -j8
8线程编译更快,如果配置支持
5.安装
make install
浙公网安备 33010602011771号