GeoModel brew binaries failing with `Library not loaded` after local install from source
Hi @rbianchi,
I was using GeoModel from the brew install without issues. Now, since I am also building GeoModel from source (only installing it to a local directory with -DCMAKE_INSTALL_PREFIX=../install
), I am suddenly encountering the following issue when trying to use any executable from the brew version of GeoModel:
dyld[50379]: Library not loaded: @rpath/libGeoMaterial2G4.4.dylib
Referenced from: <E1BBF915-0A37-3FE5-83B3-E0B0BFE46A97> /usr/local/Cellar/geomodel-geomodelg4/4.6.0/lib/libGeoModel2G4.4.6.0.dylib
Reason: no LC_RPATH's foundLibrary not loaded: @rpath/libGeoModelDBManager.4.dylib
Referenced from: <E62E70A1-F878-3759-9E4B-06D06B0FBE73> /usr/local/Cellar/geomodel/4.6.0/lib/libGeoModelRead.4.6.0.dylib
Reason: no LC_RPATH's foundLibrary not loaded: @rpath/libGeoModelDBManager.4.dylib
Referenced from: <3155BD0C-B48E-3891-A3ED-3B303B013FD9> /usr/local/Cellar/geomodel/4.6.0/lib/libGeoModelWrite.4.6.0.dylib
Reason: no LC_RPATH's foundLibrary not loaded: @rpath/libGeoModelKernel.4.dylib
Referenced from: <14886B90-6CB2-365F-9610-285776B936CD> /usr/local/Cellar/geomodel/4.6.0/lib/libTFPersistification.4.6.0.dylib
Reason: no LC_RPATH's foundLibrary not loaded: @rpath/libGeoGenericFunctions.4.dylib
Referenced from: <1BA5C8FC-1EE2-39DB-B623-FFE6FA62494A> /usr/local/Cellar/geomodel/4.6.0/lib/libGeoModelKernel.4.6.0.dylib
Reason: no LC_RPATH's found
[1] 50379 abort gm2gdml
and
dyld[50443]: Library not loaded: @rpath/libGXGui.4.dylib
Referenced from: <FA464C35-BD8F-3545-ADB9-8FFD18538CBC> /usr/local/Cellar/geomodel-visualization/4.6.0/bin/gmex
Reason: no LC_RPATH's found
[1] 50443 abort gmex
I have tried removing GeoModel and all its dependencies and re-installing several times, but so far nothing has helped.
Are there any dependencies I am potentially missing that could cause this or does the local installation modify something permanently that GeoModel depends on?
Cheers,
Joshua
Device: MacBook Pro OS Version: 14.0 (23A344) CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz