Skip to content

Instantly share code, notes, and snippets.

@rcarmo
Created July 19, 2012 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rcarmo/3144978 to your computer and use it in GitHub Desktop.
Save rcarmo/3144978 to your computer and use it in GitHub Desktop.
dbcm's Qt5 brew
#!/bin/sh
# install cross-compiler
# sudo apt-get install gcc-arm-linux-gnueabihf
# cd ~/Development
# git clone git://gitorious.org/qt/qt5.git qt5
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
unset QTDIR
export PATH="$PWD/qtbase/bin;$PWD/qtrepotools/bin/$PATH"
cd qt5
./init-repository
git pull
git submodule update --recursive
./configure \
-opensource \
-confirm-license \
-v \
-optimized-qmake \
-reduce-relocations \
-reduce-exports \
-make libs \
-no-gtkstyle \
-release
# -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