码迷,mamicode.com
首页 > 其他好文 > 详细

beagleBone black 中QT的移植

时间:2016-05-16 00:04:29      阅读:872      评论:0      收藏:0      [点我收藏+]

标签:

收到板子后默认是Debian系统。gcc -v 后发现其编译链是:arm-linux-gnueabihf

 

http://pan.baidu.com/s/1pJrAvsn 有相关工具下载,里面有这个

 

解压到/opt/arm-linux-gnueabihf,配置PATH路径:

在/etc/envirenment 的Path后加入:/opt/arm-linux-gnueabihf/bin

执行:source /etc/envirenment

下载QT4.8.6:http://download.qt.io/archive/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz

tar zxvf qt-everywhere-opensource-src-4.8.6.tar.gz

cd qt-everywhere-opensource-src-4.8.6

修改\\192.168.111.128\opt\qt-everywhere-opensource-src-4.8.6\mkspecs\qws\linux-arm-g++\qmake.conf

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC                = arm-linux-gnueabihf-gcc
QMAKE_CXX               = arm-linux-gnueabihf-g++
QMAKE_LINK              = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB        = arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR                = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy
QMAKE_STRIP             = arm-linux-gnueabihf-strip

load(qt_config)

  

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

 

make

make install

 

拷贝/opt/qt-4.8.6/lib  到板子的/opt/qt-4.8.6/下

在/opt/profile的PAH下添加:/opt/qt-4.8.5/lib

移植完成。。。编写测试程序通过。。。。

 

beagleBone black 中QT的移植

标签:

原文地址:http://www.cnblogs.com/sankye/p/5496617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!