Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add OCE to DYLD_LIBRARY_PATH [ perhaps osx specific? ] #76

Closed
jf--- opened this issue Aug 10, 2011 · 3 comments
Closed

add OCE to DYLD_LIBRARY_PATH [ perhaps osx specific? ] #76

jf--- opened this issue Aug 10, 2011 · 3 comments

Comments

@jf---
Copy link

jf--- commented Aug 10, 2011

/Library/OCE/0.5.0/env.sh is a really useful script.
However, you still need to set the DYLD_LIBRARY_PATH for the libs to be found.
The following line accomplishes this on OSX.
It would be useful to have all nessecities for loading OCE in a single shell script, this way you only have to add
source /Library/OCE/0.5.0/env.sh in your ~/.bash_profile and be on your way

# make sure that the lib can be loaded
platform=`uname`
if [ $platform = "Darwin" ];
    then export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$CASROOT/lib
fi;
@dbarbier
Copy link
Collaborator

On Linux, this env.sh script is useless, it would be nice if OSX users do not need it too. In fact, I kept it in the distribution only because some OCC-based applications may rely on these environment variables, but I would really like to get rid of this script.

This issue has been discussed on the mailing list months ago, see this thread (search for discussions about RPATH):
http://groups.google.com/group/oce-dev/browse_thread/thread/384bdf24ba811443

We (well, you OSX owners ;)) have to figure out how to make RPATH work out-of-the-box.

@jf---
Copy link
Author

jf--- commented Aug 10, 2011

hello Denis,

I fully agree with you, we should be using RPATH since it would make our
lives a lot easier.
Linking with absolute paths is silly, of course...

Though isn't it a good courtesy to keep the env.sh?
In the sense that it provides a reference to OCC env vars.

-jelle

On Linux, this env.sh script is useless, it would be nice if OSX users do
not need it too. In fact, I kept it in the distribution only because some
OCC-based applications may rely on these environment variables, but I would
really like to get rid of this script.

This issue has been discussed on the mailing list months ago, see this
thread (search for discussions about RPATH):

http://groups.google.com/group/oce-dev/browse_thread/thread/384bdf24ba811443

We (well, you OSX owners ;)) have to figure out how to make RPATH work
out-of-the-box.

@jf---
Copy link
Author

jf--- commented Aug 10, 2011

moved to OSX use RPATH issue...

@jf--- jf--- closed this as completed Aug 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants