-
-
Save dbcm/3145002 to your computer and use it in GitHub Desktop.
Qt5 brew 4 RaspberryPi
This file contains hidden or 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
#!/bin/bash | |
# install cross-compiler | |
# sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf | |
if [ "$USER" == "dbcm" ]; then | |
cd ~/Work | |
elif [ "$USER" == "rcarmo" ]; then | |
cd ~/Development | |
else | |
mkdir -p /opt | |
cd /opt | |
fi | |
apt-get update | |
apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev \ | |
libedit-dev \ | |
flex bison gperf libicu-dev libxslt-dev libsqlite3-dev libsqlite3-0 \ | |
libfontconfig1-dev libdbus-1-dev libfreetype6-dev libudev-dev \ | |
libpng-dev libjpeg-dev libssl-dev | |
if [ ! -d "qt5" ]; then | |
git clone git://gitorious.org/qt/qt5.git qt5 | |
cd qt5 | |
perl init-repository | |
else | |
cd qt5 | |
git pull | |
git submodule update --recursive | |
fi | |
unset QTDIR | |
export PATH="qtbase/bin:qtrepotools/bin:$PATH" | |
./configure \ | |
-opensource \ | |
-confirm-license \ | |
-v \ | |
-optimized-qmake \ | |
-reduce-relocations \ | |
-reduce-exports \ | |
-make libs \ | |
-continue \ | |
-nomake tests \ | |
-no-gtkstyle \ | |
-release \ | |
-fast | |
# -developer-build \ | |
# -device linux-rasp-pi-g++ \ | |
# -directfb | |
./build -j 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment