From 4cc6e2a1b1b5dacb75abaa6f35d81abb7dc8c8ed Mon Sep 17 00:00:00 2001 From: don bright Date: Mon, 24 Dec 2012 20:15:40 -0600 Subject: a workaround for LD_LIBRARY_PATH having to be set every time you want to run openscad if you build your own dependencies. diff --git a/README.md b/README.md index dd7c4f8..ebe69c0 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,14 @@ check dependencies source ./scripts/setenv-unibuild.sh ./scripts/check-dependencies.sh -Then follow the Compilation instructions below. +Then follow the Compilation instructions below. + +Note that if you build dependencies with this method, you may have to +modify your LD_LIBRARY_PATH environment variable every time you run the +openscad binary to avoid library problems. A workaround script called +"openscad-unirun.sh" has been included to solve this: copy it somewhere +in your PATH (/usr/local/bin) and run 'openscad-unirun.sh' instead of +the openscad binary. ### Building for Windows diff --git a/scripts/openscad-unirun.sh b/scripts/openscad-unirun.sh new file mode 100755 index 0000000..b0836eb --- /dev/null +++ b/scripts/openscad-unirun.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +LD_LIBRARY_PATH=$HOME/openscad_deps/lib:$HOME/openscad_deps/lib64:$LD_LIBRARY_PATH openscad + -- cgit v0.10.1