Step1
git clone https://github.com/DuinoDu/crosscompile_qt5
Put qt-everywhere-opensource-src-5.5.1.tar.gz in the same foler with crosscompile_qt5, just like this:
– .
– ..
– crosscompile_qt5
– qt-everywhere-opensource-src-5.5.1.tar.gz
Step2
Revise something.
1. Edit crosscompile_qt5/linux-arm-hisiv400-g++/qmake.conf. Change QMAKE_CC like path and OPENGL_ES2 path to your own.
2. Edit crosscompile_qt5/build-5.5.1.sh. Change -prefix value and -xplatform value. -xplatform value should be the same with crosscompile_qt5/linux-arm-hisiv400-g++.
Step3
cd crosscompile_qt5
chmod +x auto.sh
./auto.sh
Step4
Make sure no error occurs.
make
sudo make install
More reading:
1. 安装交叉编译环境
2. NFS实现linux系统间文件共享
3. Qt 5.5 enhancements for Linux graphics and input stacks
4. 交叉编译Qt5.5.1 with egl (1)
5. 记一次debug