Merge pull request #507 from srdjantot/master

Qt5: Raspberry Pi includes moved from rpi.patch to CXXFLAGS for armv6h
This commit is contained in:
Kevin Mihelich 2013-06-08 10:46:29 -07:00
commit 53408e8549
2 changed files with 5 additions and 3 deletions

View file

@ -50,7 +50,7 @@ md5sums=('2cab3518d86fe8f0638c7faea8b46397'
'd6ab43fb371be494e3bfd9b210c40bf1'
'7927028e2374321c78a76df858e723d6'
'27f2a06c6d363338ffe5e5dba96821d9'
'b7a0d68183b822899834eb1dd08c1f67'
'54ce1583d83f5e7e4b64bf89ea7cab99'
'3740dc700c9c43379b0da6c10d2f6c6e')
build() {
@ -60,6 +60,9 @@ build() {
export QTDIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH}
if [ "$CARCH" == 'armv6h' ]; then
export CXXFLAGS=${CXXFLAGS}" -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
fi
sed -i "s|-O2|${CXXFLAGS}|" qtbase/mkspecs/common/{g++,gcc}-base.conf
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" qtbase/mkspecs/common/gcc-base-unix.conf

View file

@ -65,13 +65,12 @@ index 51f04d9..4794b1e 100644
-QMAKE_STRIP = $${CROSS_COMPILE}strip
--- a/mkspecs/devices/linux-rasp-pi-g++/qmake.conf
+++ b/mkspecs/devices/linux-rasp-pi-g++/qmake.conf
@@ -11,7 +11,8 @@
@@ -11,7 +11,7 @@
QMAKE_LIBDIR_OPENGL_ES2 = $$[QT_SYSROOT]/opt/vc/lib
QMAKE_LIBDIR_EGL = $$QMAKE_LIBDIR_OPENGL_ES2
-QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads
+QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/opt/vc/include $$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads $$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
+QMAKE_CFLAGS += -I$$[QT_SYSROOT]/opt/vc/include -I$$[QT_SYSROOT]/opt/vc/include/interface/vcos/pthreads -I$$[QT_SYSROOT]/opt/vc/include/interface/vmcs_host/linux
QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL}
QMAKE_LIBS_EGL = -lEGL -lGLESv2