Boost logo

Boost Users :

Subject: Re: [Boost-users] Building Boost on Mac Snow Leopard
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2010-09-01 06:07:07


On 2010-08-29 07:35:04 +0200, Andrew Maclean said:

> If I build boost using bjam (no problems there) and set in .bashrc:
> export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:${BOOST_ROOT}/stage/lib"
>
> It seems to me that Finder is ignoring the DYLD_LIBRARY_PATH variable,

Yes that's correct. If you set it over the bash or profile config file,
the DYLD_LIBRARY_PATH works
only in the terminal, not in the Finder or XCode or anything else.

You can set some env variables with this steps:
1. create a directory ~/.MacOSX
2. open the Property List Editor and create your env variables (I use
CPPPATH, PKG_CONFIG_PATH,...)
3. save this file in the ~/.MaxOSX directory with the name environment.plist
4. logout or restart the system

But the DYLD_LIBRARY_PATH can't be set with this method, because Apple
has protected this option. For testing
I have create a variable named LIBRARY_PATH and set in my profile
export DYLD_LIBRARY_PATH=$LIBRARY_PATH
and the same option I have set in the XCode executable dialog

For you application you must set a own plist-file in the "app-package".
But thers no globally option for setting the DYLD_LIBRARY_PATH

HTH

Phil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net