| Summary: | Cannot run exampleN02 when using global libraries | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | dengzy |
| Component: | config | Assignee: | Gunter.Folger |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 7.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
dengzy
2005-08-08 20:36:02 CEST
Hello, The path to the shared library of the example is stored in the executable using the -Wl,-rpath option. Did you build the Geant4 libraries as shared libraries? The makefiles test for either libG4global.so or libG4globman.so to decide if you have shared libaries, and applies the -Wl,.. option only if you do have one of these two libraries. I did verify that example N02 works without having the directory containing the example shared library in the LD_LIBRARY_PATH. Hope this helps, Gunter |