Skip to content

Instantly share code, notes, and snippets.

@dbcm
Forked from rcarmo/build.sh
Created July 19, 2012 16:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbcm/3145002 to your computer and use it in GitHub Desktop.
Save dbcm/3145002 to your computer and use it in GitHub Desktop.
Qt5 brew 4 RaspberryPi
#!/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