Quote:
Originally Posted by JonnyXDA
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:
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.