ubuntu下给raspy pi2 编译qt5库
2024-08-22 15:09:53
交叉编译时,通常要准备mkspec, 参考: http://wiki.qt.io/Building_Qt_for_Embedded_Linux
mkspec包含两个文件:
- 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.
- 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 章 jQuery 入门
- Effective Java 读书笔记之三 类和接口
- nginx看端口使用情况
- .NET Framework Execution Was Aborted By Escalation Policy
- log4j里面的info,debug,error级别有什么区别
- rtc关机闹钟5 AlarmManager研究
- ps白平衡
- redis入门(15)redis的数据备份和恢复
- HTTP高并发调优小记
- x64类型的程序逆向思考
- 【转】Android播放音频MediaPlayer的几种方式介绍
- 【Dubbo源码学习】负载均衡算法(1)-随机算法
- 2018-2019-2 20175311 实验一《Java开发环境的熟悉》实验报告
- Linux服务器重启后eureka报错
- Andorid Studio中运行模拟器--夜神模拟器
- 兼容IE8的flash上传框架";uploadify";自定义上传按钮样式的办法
- C语言利用SMTP协议发送邮件
- [日常工作] 应用服务器上面应该尽量少开各种应用 --Chrome 内存泄露 让应用服务器非常缓慢
- IntelliJ IDEA 查看继承关系
- Design Pattern - 访问者模式