Load our own shared libraries if possible

This should fix #1482.
pull/1483/head
chrox 9 years ago
parent ded6b89f4c
commit bb164c1deb

@ -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"

@ -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`

Loading…
Cancel
Save