Skip to content

Commit

Permalink
Fix script compile-qtbase.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Lazar committed Oct 28, 2016
1 parent a49bdd5 commit e099b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/compile-qtbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ OUTPUT_DIR=$ROOT/raspi/qt5pi
export CROSS_COMPILE=$ROOT/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-
export SYSROOT=$ROOT/raspbian/sysroot

#pushd $ROOT/modules/qtbase

# Add missing INCLUDEPATH in qmake conf
QMAKE_FILE=mkspecs/devices/linux-rasp-pi2-g++/qmake.conf
grep -q 'INCLUDEPATH' $QMAKE_FILE || cat>>$QMAKE_FILE << EOL
Expand All @@ -19,6 +17,8 @@ INCLUDEPATH += \$\$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
INCLUDEPATH += \$\$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
EOL

pushd $ROOT/modules/qtbase

./configure -release -opengl es2 -device linux-rasp-pi2-g++ \
-device-option CROSS_COMPILE=$CROSS_COMPILE \
-sysroot $SYSROOT \
Expand Down

0 comments on commit e099b9d

Please sign in to comment.