Message: Re: Help linking shared library to Geant4 executable with makefile Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

News Re: Help linking shared library to Geant4 executable with makefile 

Forum: Installation and Configuration
Re: None Help linking shared library to Geant4 executable with makefile (Johnathan Sparger)
Date: 02 Mar, 2012
From: Ben Morgan <Ben Morgan>

Hi John,

On Fri, 02 Mar 2012 08:39:35 GMT, John Sparger wrote:
> dyld: Library not loaded: RootDictionaryLib.so
> � Referenced from:
> /Users/jsparger/spring2012/nbd/nbd/branches/doi/./bin/Darwin-g++/neutronBlockDetector
> � Reason: image not found
> Trace/BPT trap
> 
> I have tried running the executable in a script with LD_LIBRARY_PATH
> set to�/Users/jsparger/spring2012/nbd/nbd/branches/doi/root_dict/, but
> it doesn't seem to help at all.

On a Mac system, you'll need to set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH to point to your library. That should fix things, as I can't spot any problems with the Makefile and you're able to compile o.k. The only oddity is that the dyld output above mentions "RootDictionaryLib.so" whereas your Makefile links to RootDictionaryLib.dylib. However, try setting DYLD_LIBRARY_PATH first and hopefully that should fix things!

Cheers,

Ben

 Add Message Add Message
to: "Re: Help linking shared library to Geant4 executable with makefile"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]