summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md9
-rwxr-xr-xscripts/openscad-unirun.sh4
2 files changed, 12 insertions, 1 deletions
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
+
contact: Jan Huwald // Impressum