Building The Kobo Reader Sources

I’ve covered this before, but the Kobo Reader sources have changed, so here’s an updated guide to installing and building them.

Create the directory structure:

mkdir kobo
cd kobo
mkdir fs
mkdir tmp

Fetch the Kobo Reader sources:

git clone git clone git:// KoboLabs

Set bash as your shell (you can set it back afterwards using the same command):

sudo dpkg-reconfigure -plow dash
# Choose "No"

Install the developer tools:


If you’re on a 64-bit version of the OS, make sure you install the i386 versions of libc6 and any other missing libraries for the installer or the tools (e.g. libXext).

Make symbolic links to the toolchain under the names that Qt’s build system is expecting. Otherwise you will get weird and difficult to diagnose errors:

cd ~/CodeSourcery/Sourcery_G++/bin
for f in arm-none-linux-gnueabi-*; do n=$(echo $f|cut -b 24-); ln -s $f arm-linux-$n; done

Set required environment variables:

echo "export KOBOLABS=$HOME/kobo/KoboLabs" >> ~/.bashrc
echo "export PATH=$PATH:$HOME/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin" >> ~/.bashrc
source ~/.bashrc

Create the file ~/kobo/KoboLabs/build/ with the following contents:


Start the build:

cd ~/kobo/tmp

And then wait…

Posted in Free Software, Howto