I was able to compile Qt 4.8 from Kobo's github with the new toolchain. I documented my exact steps on a fresh install of Ubuntu 12.04 32 bit. Here's what worked. First install some stuff we need to compile.
Code:
sudo apt-get install git gettext autoconf libglib2.0-dev libtool build-essential libdbus-1-dev
Then make some directories and download the code.
Code:
mkdir -p ~/kobo/fs ~/kobo/tmp
cd kobo
git clone git://github.com/kobolabs/Kobo-Reader.git
After that's finished, extract the new toolchain and create symbolic links in /usr/local/bin.
Code:
cd ~/kobo/Kobo-Reader/toolchain/
tar jxf gcc-linaro-arm-linux-gnueabihf-4.8-2013.04-20130417_linux.tar.bz2
cd gcc-linaro-arm-linux-gnueabihf-4.8-2013.04-20130417_linux/bin
for f in *; do sudo ln -s `pwd`/$f /usr/local/bin/arm-linux-${f:20}; done
Create a file named 'build-config-user.sh' in ~/kobo/Kobo-Reader/build/ and add these lines.
Code:
DEVICEROOT=$HOME/kobo/Kobo-Reader
QT_EXTRA_ARGS="--prefix=$HOME/kobo/qt -no-webkit -D QT_NO_QWS_CURSOR -D QT_NO_QWS_QPF2"
In ~/kobo/Kobo-Reader/build/scripts/glib.sh, replace
CFLAGS="${CFLAGS}" with
CFLAGS="${CFLAGS} -marm"
There's a few changes that need to be made in ~/kobo/Kobo-Reader/build/scripts/qt.sh. First change the Qt version from 4.6.2 to 4.8.0, then remove the following options in the ./configure line:
Code:
-qt-gif
-qt-gfx-qvfb
-qt-gfx-transformed
-qt-gfx-linuxfb
-no-mouse-pc
-no-mouse-linuxtp
-no-mouse-linuxinput
-no-mouse-tslib
-no-mouse-qvfb
-no-mouse-qnx
I couldn't get busybox to compile, so I just removed it from ~/kobo/Kobo-Reader/build/build-all.sh.
Now all that's left is to start compiling.
Code:
cd ~/kobo/tmp
KOBOLABS=$HOME/kobo/Kobo-Reader
~/kobo/Kobo-Reader/build/build-all.sh
Hopefully we'll be able to get the tweaks plugin working with the latest firmware versions soon.