1. 下载依赖
wget http://download.qt.io/official_releases/qt/5.12/5.12.6/qt-opensource-linux-x64-5.12.6.run
wget http://download.qt.io/official_releases/qt/5.12/5.12.6/single/qt-everywhere-src-5.12.6.tar.xz
2. 安装
sudo chmod 777 qt-opensource-linux-x64-5.12.6.run
sudo ./qt-opensource-linux-x64-5.12.6.run
sudo chown 用户名:用户名 Qt5.12.6/ -R
3. 安装arm交叉工具
sudo apt-get install gcc-arm-linux-gnueabi
sudo apt-get install g++-arm-linux-gnueabi
sudo ./configure -prefix /usr/local/qt-5.12.6-arm -release -xplatform linux-arm-gnueabi-g++ -opensource -confirm-license -no-opengl -no-openssl -no-compile-examples -skip declarative
sudo make -j8
sudo make install
//编译出的qmake 在/usr/local/qt-5.12.6-arm/bin, 在配置
4. 运行测试
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
sudo apt --fix-broken install ###解决依赖项
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
cp /opt/Qt5.12.6/Examples/Qt-5.12.6/charts/chartthemes/ code/test/qt/ -rf
open--build--run
2019-11-19_212610.png
网友评论