Thread: Kobo Tweaks
View Single Post
Old 07-05-2013, 03:27 PM   #151
stefjan
Junior Member
stefjan is on a distinguished road
 
Posts: 7
Karma: 57
Join Date: Jun 2013
Device: kobo glo
Quote:
Originally Posted by JonnyXDA View Post
Did you have to make any changes to get Qt 4.8.0 to compile? I switched to a dual boot on my main PC because the VM I was running ubuntu in previously was just too slow and since then, I am having problems getting Qt 4.8.0 to compile - even when using the change posted 2 posts up, 4.6.2 compiles fine though
short disclaimer: i am not a SW-developer, so please bear with me. I also replace some full paths with $DEVICEROOT for the sake of this post, so i hope i did not introduce any errors there.

i made this changes to the build/scripts/qt.sh

Code:
patch -p3 < ../$PATCHESDIR/qt-everywhere-opensource-src-4.8.0_kobo.patch
i also added this, but i cannot remember why
Code:
export PKG_CONFIG_PATH=$DEVICEROOT/lib/pkgconfig
in the ./configure line i removed the -qt-gif like JonnyXDA mentions, but i added this:
Code:
-I${DEVICEROOT}/include -D QT_NO_QWS_CURSOR -D QT_NO_QWS_QPF2
this is the full line btw:
Spoiler:
./configure $CPPFLAGS $LIBS -release -no-accessibility -system-libmng -no-nis -no-cups -no-xshape -no-xrandr -no-xkb -no-xinerama -no-xcursor -no-sm -system-libpng -system-libjpeg -qt-zlib -embedded arm -xplatform qws/linux-arm-g++ -no-qt3support -exceptions -opensource -no-pch -qt-freetype -qt-gfx-qvfb -confirm-license -dbus -ldbus-1 -nomake examples -nomake docs -nomake translations -nomake examples -nomake docs -nomake demos -scripttools -xmlpatterns -no-opengl -depths all -qt-gfx-transformed -qt-gfx-linuxfb -no-mouse-pc -no-mouse-linuxtp -no-mouse-linuxinput -no-mouse-tslib -no-mouse-qvfb -no-mouse-qnx -no-armfpa -no-neon -openssl -lrt -I${DEVICEROOT}/include/dbus-1.0 -I${DEVICEROOT}/lib/dbus-1.0/include -I${DEVICEROOT}/include $QT_EXTRA_ARGS -D QT_NO_QWS_CURSOR -D QT_NO_QWS_QPF2


then it gets messy. i ran make, got some errors and starting fixing things manually:

in qt-everywhere-opensource-src-4.8.0/src/gui/text/text.pri i added
LIBS_PRIVATE += -ldl
and in qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/WebKit/qt/tests/tests.pri
LIBS_PRIVATE += -lpng12 -lz -Wl,-rpath,$DEVICEROOT/lib -L$DEVICEROOT/lib -licuuc

it's probably not needed but at the top of my build-all.sh i have this:
CPPFLAGS+=" -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -mthumb -mthumb-interwork -mtune=cortex-a8 \
-Wa,-march=armv7-a,-mcpu=cortex-a8,-mfpu=vfpv3,-mfloat-abi=hard,-mthumb,-mthumb-interwork \
-I$DEVICEROOT/include -I$DEVICEROOT/usr/include"

i think i added that to get around some compilation problems with the other packages but as a consequence my qt also got compiled with these settings.

hope it helps.
stefjan is offline   Reply With Quote