Message: Re: Qt5.11.2 and Geant4.10.4.p02 and rpath Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: Qt5.11.2 and Geant4.10.4.p02 and rpath 

Forum: Installation and Configuration
Re: Sad Qt5.11.2 and Geant4.10.4.p02 and rpath (Kareem Kazkaz)
Date: Jan 04, 06:04
From: Ben Morgan <Ben Morgan>

On Tue, 01 Jan 2019 05:26:35 GMT, Kareem Kazkaz wrote:
> My application compiles successfully using an old-fashioned makefile,
> not cmake. When I launch, however, I get the following error message:
> dyld: Library not loaded: @rpath/QtCore.framework/Versions/5/QtCore
>   Referenced from: /Users/kazkaz1/Documents/AlphaVoltaic/Simulation/BACCARAT/./BACCARATExecutable
>   Reason: image not found
> Abort trap: 6
>         /usr/local/ImageMagick-7.0.8/lib:/usr/local/root_v5.34.36/lib::/usr/local/Qt-5.11.2/lib:/usr/local/root_v5.34.36/lib:/usr/local/geant4.10.04.p02/lib
> ...
> Does anybody have any suggestions? Is there a flag I'm missing during
> compilation? Does anybody else have trouble getting Qt to play nice with
> Geant4 using an old-style makefile?

What settings for compiling and linking do you have in your Makefile (post it as an attachment if long)? Also, how do you run your executable, directly, or wrapped in a script?

The failure to find the dylib feels like the macOS SIP issue, i.e. DYLD_LIBRARY_PATH is being stripped from the process that starts the executable. Try running the executable with the environment variable DYLD_PRINT_LIBRARIES set, as that should print exactly what's loaded and how it's resolved, though it won't show if DYLD_LIBRARY_PATH has been unset.

The other thing to try is setting the RPath explicitly in the executable. That can be done by adding flags of the form -Wl,-rpath,/path/to/be/added to the link options for each path needed to be looked in for libraries (i.e. one for each of the entries in the DYLD_LIBRARY_PATH.



Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: Qt5.11.2 and Geant4.10.4.p02 and rpath   (Kareem Kazkaz - Jan 04, 23:25)
 Add Message Add Message
to: "Re: Qt5.11.2 and Geant4.10.4.p02 and rpath"

 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 ]