dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #19267
Re: [Branch ~dolfin-core/dolfin/main] Rev 5052: Add DYLD_LIBRARY_PATH to dolfin.conf to get DOLFIN to run on OS X.
On Sun, 2010-08-22 at 22:49 +0000, noreply@xxxxxxxxxxxxx wrote:
> ------------------------------------------------------------
> revno: 5052
> committer: Anders Logg <logg@xxxxxxxxx>
> branch nick: dolfin-dev
> timestamp: Mon 2010-08-23 00:46:39 +0200
> message:
> Add DYLD_LIBRARY_PATH to dolfin.conf to get DOLFIN to run on OS X.
Make the environment variable a 'variable' so we have LD_LIBRARY_PATH on
Unix/Linux and DYLD_LIBRARY_PATH on OSX in the dolfin.conf file, rather
than having both.
> Don't know if this is the preferred way. I expect it's possible with
> some CMake option to hard-code the library path into the library
> (which seems to happen for other libraries but not for DOLFIN).
It's the RPATH options that control it.
Garth
> modified:
> cmake/templates/dolfin.conf.in
>
>
> --
> lp:dolfin
> https://code.launchpad.net/~dolfin-core/dolfin/main
>
> Your team DOLFIN Core Team is subscribed to branch lp:dolfin.
> To unsubscribe from this branch go to https://code.launchpad.net/~dolfin-core/dolfin/main/+edit-subscription
> differences between files attachment (revision-diff.txt)
> === modified file 'cmake/templates/dolfin.conf.in'
> --- cmake/templates/dolfin.conf.in 2010-08-15 10:54:05 +0000
> +++ cmake/templates/dolfin.conf.in 2010-08-22 22:46:39 +0000
> @@ -1,6 +1,7 @@
> # Helper file for setting non-default DOLFIN environment variables
>
> export LD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/@DOLFIN_LIB_DIR@:$LD_LIBRARY_PATH
> +export DYLD_LIBRARY_PATH=@CMAKE_INSTALL_PREFIX@/@DOLFIN_LIB_DIR@:$DYLD_LIBRARY_PATH
> export PATH=@CMAKE_INSTALL_PREFIX@/@DOLFIN_BIN_DIR@:$PATH
> export PKG_CONFIG_PATH=@CMAKE_INSTALL_PREFIX@/@DOLFIN_PKGCONFIG_DIR@:$PKG_CONFIG_PATH
> export PYTHONPATH=@DOLFIN_INSTALL_PYTHON_MODULE_DIR@:@DOLFIN_INSTALL_PYTHON_EXT_DIR@:$PYTHONPATH
>
Follow ups