tar -xvf ~/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_ARM-linux-gnueabihf.tar.xz
export ARCH=arm
export CROSS_COMPILE=/home/linyn/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
export PATH=/home/linyn/imx6/4.1/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH
${CROSS_COMPILE}gcc -v
unzip tslib-master.zip
cd tslib-master/
./autogen.sh
./configure --host=arm-linux-gnueabihf --prefix=/usr/local/tslib
make -j4
sudo make install
tar zxvf qt-everywhere-opensource-src-5.6.0.tar.gz
cd qt-everywhere-opensource-src-5.6.0/
vim qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.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_NM = arm-linux-gnueabihf-nm -P
QMAKE_STRIP = arm-linux-gnueabihf-strip
保存
vim qtbase/mkspecs/common/g++-base.conf
std=c++1z 改为 -std=c++11
./configure -v -prefix /usr/local/QtEmbedded-5.6.0-arm -release -opensource -no-accessibility -make libs -xplatform linux-arm-gnueabi-g++ -optimized-qmake -pch -qt-sql-sqlite -qt-zlib -tslib -no-opengl -no-sse2 -no-openssl -no-nis -no-cups -no-glib -no-pkg-config -no-separate-debug-info -I /usr/local/tslib/include -L /usr/local/tslib/lib
选择和输入yes回车
make -j8
sudo make install
|