From bb164c1deb87a7e0ac411e52eef293b915c6e978 Mon Sep 17 00:00:00 2001 From: chrox Date: Mon, 13 Apr 2015 10:54:28 +0800 Subject: [PATCH] Load our own shared libraries if possible This should fix #1482. --- platform/kindle/koreader.sh | 3 +++ platform/kobo/koreader.sh | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/kindle/koreader.sh b/platform/kindle/koreader.sh index d28c534cb..a9dd54b35 100755 --- a/platform/kindle/koreader.sh +++ b/platform/kindle/koreader.sh @@ -109,6 +109,9 @@ if [ -f "${NEWUPDATE}" ] ; then fi fi +# load our own shared libraries if possible +export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:$LD_LIBRARY_PATH + # export trained OCR data directory export TESSDATA_PREFIX="data" diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index c1fb207a8..eb483b400 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -15,6 +15,9 @@ fi # we're always starting from our working directory cd $KOREADER_DIR +# load our own shared libraries if possible +export LD_LIBRARY_PATH=${KOREADER_DIR}/libs:$LD_LIBRARY_PATH + # export trained OCR data directory export TESSDATA_PREFIX="data" @@ -42,7 +45,7 @@ fi # check whether PLATFORM has a value assigned by rcS # PLATFORM is used in koreader for the path to the WiFi drivers -if [ -n "$PLATFORM" ]; then +if [ -n "$PLATFORM" ]; then PLATFORM=freescale if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then CPU=`ntx_hwconfig -s -p /dev/mmcblk0 CPU`