标签:
收到板子后默认是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
移植完成。。。编写测试程序通过。。。。
标签:
原文地址:http://www.cnblogs.com/sankye/p/5496617.html