From afd277901a68bdc99c3b975d5773d1747d904e09 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Mon, 18 Nov 2019 15:24:44 +0100 Subject: [PATCH] [fix] Prevent double library loads (#5607) As per @NiLuJe's suggestions from . I'm not super happy with this but being able to easily run the emulator is the most important thing. --- kodev | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kodev b/kodev index 0c1ac28f9..de97ec08b 100755 --- a/kodev +++ b/kodev @@ -100,7 +100,10 @@ function setup_env() { fi files=$(find . -maxdepth 1 -name 'koreader-emulator-*' | ${SETUP_ENV_GREP_COMMAND})/koreader assert_ret_zero $? "Emulator not found. Please build it first." - export EMU_DIR=${files[0]} + EMU_DIR=${files[0]} + export EMU_DIR + LD_LIBRARY_PATH=$(realpath "${EMU_DIR}")/libs:${LD_LIBRARY_PATH} + export LD_LIBRARY_PATH } function kodev-fetch-thirdparty() {