- toolchain: http://tolino.naberius.de/gcc-linaro..._linux.tar.bz2 (I guess you can also use gcc-arm-linux-gnueabihf on ubuntu)
- dependencies: autoconf automake build-essential cmake gettext git libglib2.0-dev libtool patch pkg-config subversion transifex-client wget zip
- get the code (how come google-translate-cli is not there?!):
Code:
git clone git://github.com/koreader/koreader.git
cd koreader
git checkout -b kobotouch-20140101 4945e0ae23c48af31a6ccac19916639588d91524
# PATCHED : koreader-base/.gitmodule : soimort/googl-translate-cli au instead of
# koreader (NOT NEEDED)
echo "==================================================================="
make fetchthirdparty # will fail
echo "==================================================================="
mkdir -p koreader-base
cd koreader-base
git clone git://github.com/soimort/google-translate-cli.git
cd ..
echo "==================================================================="
make fetchthirdparty #this time will be ok
echo "==================================================================="
* install toolchain:
Code:
mkdir -p /opt/kobotoolchain ; tar -C /opt/kobotoolchain -xjf gcc-linaro-arm-linux-gnueabihf-4.8-2013.04-20130417_linux.tar.bz2
* compile:
Code:
PATH="/opt/kobotoolchain/gcc-linaro-arm-linux-gnueabihf-4.8-2013.04-20130417_linux/bin/:$PATH"
USE_FIXED_POINT=1
USE_NO_CCACHE=1
make clean
#THIS SHOULDN'T BE NEEDED, I USE TARBALLS OUT OF THE GIT REPO TO COMPILE
CRENGINE_DIR=./koreader-base/kpvcrlib/crengine #/crengine/include/crsetup.h
# CREngine patch: disable fontconfig
grep USE_FONTCONFIG $CRENGINE_DIR/crengine/include/crsetup.h \
&& grep -v USE_FONTCONFIG \
$CRENGINE_DIR/crengine/include/crsetup.h \
> /tmp/new \
&& mv /tmp/new $CRENGINE_DIR/crengine/include/crsetup.h \
|| echo "USE_FONTCONFIG already disabled"
make TARGET_DEVICE=KOBO koboupdate
kobozip=`find koreader-kobo*.zip |sort -r |head -1`
exit
Last edited by simonchik; 06-01-2014 at 09:16 AM.
|