a workaround for LD_LIBRARY_PATH having to be set every time you want to

run openscad if you build your own dependencies.
felipesanches-svg
don bright 2012-12-24 20:15:40 -06:00
parent 51259e6caa
commit 4cc6e2a1b1
2 changed files with 12 additions and 1 deletions

View File

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

4
scripts/openscad-unirun.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
LD_LIBRARY_PATH=$HOME/openscad_deps/lib:$HOME/openscad_deps/lib64:$LD_LIBRARY_PATH openscad