You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FYI: I pruned my laptop for brew and macports so it has nothing other than Apple bins. I installed the 6.0.0 pre-release bundle, and in a regular bash shell everything works as long as I added the bundle bin to PATH and set PROJ_LIB to bundle share/proj6. The gs works fine without any GS_LIB setting. SO while the bundle may need more work to serve Julia and Python, it will certainly be very helpful to non-Unix Mac users who just want to install and run without learning the full distribution way of life.
I also build gmtmex against the bundle, copy gmt.m and gmtmex.mexmaci64 to the bundle's bin directory, and change @executable_path to @loader_path in gmtmex.mexmaci64. Then the macOS bundle + gmtmex also work well.
So perhaps when we build the macOS bundle, we should use @loader_path, not @executable_path.
Activity
joa-quim commentedon Oct 29, 2019
Yes, that issue started to be discussed here
PaulWessel commentedon Oct 29, 2019
FYI: I pruned my laptop for brew and macports so it has nothing other than Apple bins. I installed the 6.0.0 pre-release bundle, and in a regular bash shell everything works as long as I added the bundle bin to PATH and set PROJ_LIB to bundle share/proj6. The gs works fine without any GS_LIB setting. SO while the bundle may need more work to serve Julia and Python, it will certainly be very helpful to non-Unix Mac users who just want to install and run without learning the full distribution way of life.
seisman commentedon Sep 25, 2020
I try to make some changes to the macOS bundle using the following script, and then the bundle works well for CLI, PyGMT, and GMT.jl.
What the script does is simple. It replaces
@executable_pathto@loader_pathin all the libraries.I also build gmtmex against the bundle, copy gmt.m and gmtmex.mexmaci64 to the bundle's bin directory, and change
@executable_pathto@loader_pathin gmtmex.mexmaci64. Then the macOS bundle + gmtmex also work well.So perhaps when we build the macOS bundle, we should use
@loader_path, not@executable_path.PaulWessel commentedon Sep 25, 2020
Maybe the cpack command can control the loader/executable_path stuff? I think we are getting whatever default it has, no?
seisman commentedon Sep 25, 2020
Perhaps line 192 determines
executable_pathfor dylibs:gmt/cmake/dist/CMakeLists.txt
Lines 187 to 199 in 81d4e56
PaulWessel commentedon Sep 25, 2020
It sure looks like that. I am reading https://wincent.com/wiki/%40executable_path%2C_%40load_path_and_%40rpath as well.
joa-quim commentedon Jul 18, 2023
Duplicated from an also closed issue.