ubuntu下给raspy pi2 编译qt5库
2015-11-04 22:34
411 查看
交叉编译时,通常要准备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
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
相关文章推荐
- ASP.NET 4.0的ClientIDMode属性
- ASP.NET WebAPI 09 Controller的激活
- ASP.NET中验证控件的使用
- JSP GridView --使用自定义标签实现ASP.NET的控件
- asp.net学习之Repeater控件
- asp中弹出对话框,确定后重定向方法
- asp 时间的比较如何选择出适合范围的时间
- ASP.NET中IsPostBack详解
- asp.net 调用echarts显示图表控件随浏览器自适应解决方案
- win7 spark运行本地程序文件出错 error:avaSparkContext. : java.lang.NullPointerException
- C# ASP.NET基类,常用类库及源代码
- Asp.Net MVC页面静态化功能实现二:用递归算法来实现
- Asp.net Session过期页面处理
- [ASP.NET] 将数据绑定到DropDownlist中的常见问题
- Asp.net 日历控件
- Encription
- 关于访问asp.net网站时登录后的奇怪问题
- 安全参透之旅第3章 OWASP工具使用
- 一个asp+ACCESS省市二级联动菜单程序
- asp怎么实现二级联动下拉菜单