|
host-pc : ubuntu 14.04
target device : jetson TX1
cross compiler : gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu
qt源码:qt-everywhere-opensource-src-5.8.0
configure:
./configure \
-v \
-opensource \
-confirm-license \
-device-option CROSS_COMPILE=/home/suma/GUI/gcc/gcc-linaro/bin/aarch64-linux-gnu- \
-device linux-XX-g++ \
-prefix /usr/local/qt5 \
-extprefix /home/suma/GUI/qt/qt5 \
-hostprefix /home/suma/GUI/qt/qt5-host \
-nomake examples \
-nomake tests \
-opengl es2 \
-sysroot /XX/rootfs \
注:
-device 具体硬件平台根据个人需求填写,qt可支持的平台请查看:
/qt-everywhere-opensource-src-5.8.0/qtbase/mkspecs/devices
例如我的平台是TX1(根据tk1 自己写的):
-device linux-jetson-tx1-g++
-sysroot 编译时的文件系统环境,需和自己使用的平台同步如/usr,/lib,/bin等
-sysroot /home/suma/tx1/Linux_for_Tegra/rootfs |
|