当前位置: 首页 > news >正文

qt 5.14.2 arm 交叉环境搭建过程

主要参考
https://blog.csdn.net/anmo_moan/article/details/126960630
https://blog.csdn.net/a648642694/article/details/89302843

1 下载编译器&设置

1.1 gcc-linaro-12.2.1-2023.01-x86_64_arm-linux-gnueabihf.tar.xz 下载编译器

1.2. /home/zsf/arm linaro 压缩包复制到此目录 并解压

1.3. 添加path
1.3.1 》 gedit ~/.bashrc 最后一行添加 linaro的bin路径
1.3.2 export PATH=$PATH:/home/zsf/arm/gcc-linaro-12.2.1-2023.01-x86_64_arm-linux-gnueabihf/bin
1.3.3 查看 arm-linux-gnueabihf-gcc -v
1.3.4 使用armgcc 没有问题
》 arm-linux-gnueabihf-gcc testArmGCC.c -o arm

	#include <stdio.h>int main(){printf("hello arm gcc");return 0;}

2 qt源代码包

2.1 qt-everywhere-src-5.14.2.tar.xz 解压
2.2. 修改 qmake.conf,配置相关的编译器,默认使用arm-linux-gnueabi前缀
2.3 ./qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf
参考 : https://zhuanlan.zhihu.com/p/587698754

2.4 配置编译选项
./configure -prefix /home/zsf/arm/qt-everywhere-src-5.14.2/armqt-5.14.2 -opensource -confirm-license -release -strip -shared -xplatform linux-arm-gnueabi-g++ -optimized-qmake -c++std c++11 --rpath=no -pch -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -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 qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtwayland -skip qtwebengine -skip qtwebview -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -make libs -make examples -nomake tools -nomake tests -gui -widgets -dbus-runtime --glib=no --iconv=no --pcre=qt --zlib=qt -no-openssl --freetype=qt --harfbuzz=qt -no-opengl -linuxfb --xcb=no --libpng=qt --libjpeg=qt --sqlite=qt -plugin-sql-sqlite -recheck-all

3 注意

3.1 python命令

/* ubuntu 18.04 python 3 改成python 2*/
参考 https://www.cnblogs.com/SamFang/p/14316969.html

3.2 错误需改

/home/zsf/arm/qt-everywhere-src-5.14.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
#include // add by zsf

4 make & install

make -j4
make install #安装
http://www.lryc.cn/news/89884.html

相关文章:

  • apt remove purge的区别 删除包的同时删除配置文件
  • 电商|跨境电商如何选择API接口和ERP
  • 测试人员的启蒙指南
  • Linux工具:vim常用快捷键
  • TA-lib第三方库安装问题
  • 接口测试的测试要点
  • 直流电机 PID 控制系统仿真研究(Simulink实现)
  • 第三章 向量与线性方程组
  • 数组题目总结 -- 花式遍历
  • Android 12.0开机过滤部分通知声音(莫名其妙的通知声音)
  • LeetCode-0525
  • 【Linux 】scp命令
  • Docker部署yolov5
  • 如何在 Axios 中去控制 Loading?大有学问!
  • 充电桩检测设备厂家TK4860C交流充电桩检定装置
  • 一文3000字实现基于Selenium+Python的web自动化测试框架
  • Android 12系统源码_窗口管理(二)WindowManager对窗口的管理过程
  • python3.8,torch1.10.2+cu113、torch-geometric 安装
  • 堆(heap)、栈(stack)
  • 企业级API网关之典型应用场景
  • 【2023年4月美赛加赛】Z题:The future of Olympics 25页完整论文
  • Rocket重试机制,消息模式,刷盘方式
  • linux+onenet可视化(图形化步骤)
  • 汇编的基础
  • 并发编程学习(十四):tomcat线程池
  • 简洁灵活工单管理系统,支持工单模版字段、工单状态自定义
  • 标签派单系统架构设计
  • Jmeter和Postman那个工具更适合做接口测试?
  • k8s污点与容忍
  • 市面上有哪些软件可以结合agentgpt的?众包平台结合的好处!