一片冰心在玉壶

那时我们有梦,关于文学,关于爱情,关于穿越世界的旅行, 如今我们深夜饮酒,杯子碰到一起,都是梦破碎的声音. 交往都是初逢,爱情都在心里,往事都在梦中, 希望都带着注释,信仰都带着呻吟. 总有善意的光逃避现世的繁琐而寻找片刻的安宁, 也许,就是你凝视这里的眼睛

博客园 首页 联系 订阅 管理

收到板子后默认是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

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

 

posted on 2016-05-15 23:28  Sankye  阅读(565)  评论(0编辑  收藏  举报