交叉编译时,通常要准备mkspec, 参考: http://wiki.qt.io/Building_Qt_for_Embedded_Linux

mkspec包含两个文件:

  1. qmake.conf- This is a list of qmake variable assignments that tells qmake what flags to pass through to the compiler, which compiler to use etc.
  2. qplatformdefs.h - This is a header file with various platform-specific #includes and #defines. Often this just refers to an existing qplatformdefs.h file from another generic mkspec.

参考 http://doc.qt.io/qt-5/embedded-linux.html

可以知道, qt已经为pi2准备了mkspec, 我们只要在编译配置的时候,指定即可.

./configure -release -opengl es2 -device linux-rasp-pi2-g++ -device-option CROSS_COMPILE=$TOOLCHAIN/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot $ROOTFS -prefix /usr/local/qt5 -fontconfig -eglfs

最新文章

  1. 第 1 章 jQuery 入门
  2. Effective Java 读书笔记之三 类和接口
  3. nginx看端口使用情况
  4. .NET Framework Execution Was Aborted By Escalation Policy
  5. log4j里面的info,debug,error级别有什么区别
  6. rtc关机闹钟5 AlarmManager研究
  7. ps白平衡
  8. redis入门(15)redis的数据备份和恢复
  9. HTTP高并发调优小记
  10. x64类型的程序逆向思考
  11. 【转】Android播放音频MediaPlayer的几种方式介绍
  12. 【Dubbo源码学习】负载均衡算法(1)-随机算法
  13. 2018-2019-2 20175311 实验一《Java开发环境的熟悉》实验报告
  14. Linux服务器重启后eureka报错
  15. Andorid Studio中运行模拟器--夜神模拟器
  16. 兼容IE8的flash上传框架"uploadify"自定义上传按钮样式的办法
  17. C语言利用SMTP协议发送邮件
  18. [日常工作] 应用服务器上面应该尽量少开各种应用 --Chrome 内存泄露 让应用服务器非常缓慢
  19. IntelliJ IDEA 查看继承关系
  20. Design Pattern - 访问者模式

热门文章

  1. JVM(二)JVM的结构
  2. 杂谈:HTTP1.1 与 HTTP2.0 知多少?
  3. 修改Hosts文件提示没有权限怎么办
  4. SpringCloud入门之eclipse新建maven子项目和聚合项目
  5. 【胡思乱想】命令模式中,命令对象如何解耦Invoker和Receiver
  6. 微信小程序开发语言的选择
  7. Tomcat学习总结(2)——Tomcat使用详解
  8. 第二章 Servlet基础
  9. es6学习笔记1
  10. Repeater控件,判断最少选择一行记录