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
Building Allegro for macOS creates several dylibs for each Allegro component, like this:
liballegro.dylib
liballegro.5.2.dylib
liballegro.5.2.10.dylib
etc.
with the one having the full version number being the real one and the rest being symlinks. However this causes problems because:
Loadcommand4cmdLC_ID_DYLIBcmdsize56name @rpath/liballegro.5.2.dylib(offset24)
time stamp1WedDec3119:00:011969currentversion5.2.10compatibilityversion5.2.0
The install name in the dylib refers to one of the symlinks. Then, when one of these is imported into e.g. an Xcode project, Xcode follows the symlink and pulls in the real file - which, if dylibs are bundled with the app, leads to the OS being unable to load them because the name the linker used in the executable (taken from LC_ID_DYLIB) doesn't match the name of the file that actually got bundled. In other words, liballegro.5.2.10.dylib is what gets bundled, but the OS tries to load liballegro.5.2.dylib at runtime, and the app crashes on startup.
The text was updated successfully, but these errors were encountered:
Building Allegro for macOS creates several dylibs for each Allegro component, like this:
with the one having the full version number being the real one and the rest being symlinks. However this causes problems because:
The install name in the dylib refers to one of the symlinks. Then, when one of these is imported into e.g. an Xcode project, Xcode follows the symlink and pulls in the real file - which, if dylibs are bundled with the app, leads to the OS being unable to load them because the name the linker used in the executable (taken from
LC_ID_DYLIB
) doesn't match the name of the file that actually got bundled. In other words,liballegro.5.2.10.dylib
is what gets bundled, but the OS tries to loadliballegro.5.2.dylib
at runtime, and the app crashes on startup.The text was updated successfully, but these errors were encountered: