Last active
October 30, 2016 13:01
-
-
Save galileopy/4a45b24fe0f4be2079ed4f2d61dfe68b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0 | |
export PR=`pwd` | |
export OPT=$PR/opt | |
export DIETPI=$PR/opt/dietpi/dietpi.img | |
export RPI=$PR/opt/rpi | |
export _QT=$PR/opt/rpi/qt5 | |
#export LINARO=$PR/opt/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/ | |
export LINARO=$PR/opt/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/ | |
export MNT=/mnt/dietpi | |
sudo mkdir /mnt/dietpi | |
sudo mount -o loop,offset=70254592 $DIETPI $MNT | |
mkdir $RPI | |
cd $RPI | |
#git clone https://github.com/raspberrypi/tools | |
git clone https://git.milosolutions.com/other/cross-compile-tools.git | |
git clone git://code.qt.io/qt/qt5.git | |
wget https://www.dropbox.com/s/sl919ly0q79m1e6/gcc-4.7-linaro-rpi-gnueabihf.tbz | |
tar -xf gcc-4.7-linaro-rpi-gnueabihf.tbz | |
cd $_QT | |
./init-repository | |
cd $RPI/cross-compile-tools; sudo ./fixQualifiedLibraryPaths $MNT $LINARO/arm-linux-gnueabihf-gcc | |
#cd $RPI; sudo ./sysroot-relativelinks.py $MNT | |
cd $_QT/qtbase | |
./configure \ | |
-release \ | |
-opengl es2 \ | |
-optimized-qmake \ | |
-no-pch \ | |
-make libs \ | |
-make tools \ | |
-device linux-rasp-pi-g++ \ | |
-device-option CROSS_COMPILE=$LINARO/arm-linux-gnueabihf- \ | |
-sysroot $MNT \ | |
-opensource \ | |
-reduce-exports \ | |
-prefix /usr/local/qt5pi \ | |
-confirm-license \ | |
-extprefix /usr/local/qt5pi \ | |
-hostprefix /usr/local/qt5pi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment