设为首页 加入收藏

TOP

Fedora 14编译Qt 4.7.0
2014-11-24 11:15:14 来源: 作者: 【 】 浏览:0
Tags:Fedora 编译 4.7.0

采用友善之臂的Tiny6410开发板,编译友善之臂提供的qte-4.7.0,在经过若干次尝试后终于找到问题所在实际上是因为我的gcc没有安装好,需要通过网络安装gcc软件,这个过程可以通过查看你的文档得到如下图:






./configure -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon


可以看出此时到linux-arm-gcc在qws文件夹下面,找到他以后看到他的链接可以看到一步步到链接到gcc上面,通过在teminal中查看gcc -v显示需要安装,按照提示进行安装然后就可以进行编译了。不过编译过程还是不能够在./build-all下完成,需要到


# /opt/mini6410/qt-everywhere-opensource-src-4.7.0


# echo yes | ./configure -prefix /opt/Qt4.7 -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon


上面的主要参数含义说明如下:


-embedded arm: 表示将编译针对 arm 平台的 embedded 版本;


-xplatform qws/linux-arm-g++: 表示使用 arm-linux 交叉编译器进行编译;


-qt-mouse-tslib: 表示将使用 tslib 来驱动触摸屏;


-prefix /opt/Qt4.7: 表示 Qt4.7 最终的安装路径是 /opt/Qt4.7 ,注意,部置到 mini6410 开


发板时,也需要把 Qt4.7 放在这个路径上;


编译后的结果如图



然后gmake即可


gmake istall


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Linux进程间通信之消息队列 下一篇FriendlyARM Tiny6410-Fedora14-Q..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Redis on AWS:Elast (2025-12-27 04:19:30)
·在 Spring Boot 项目 (2025-12-27 04:19:27)
·使用华为开发者空间 (2025-12-27 04:19:24)
·Getting Started wit (2025-12-27 03:49:24)
·Ubuntu 上最好用的中 (2025-12-27 03:49:20)