Hello,

I've used gtk-mac-bundler to create my app, but I've some issues with 
referenced dylib.

GTK libs are referenced with absolute path:
<prefix>/lib/libgtk-3.0.dylib
These are changed by gtk-mac-bundler into:
@executable_path/../Resources/lib/libgtk-3.0.dylib

I've got some messages as:
Cannot find a matching prefix for libxmlada_schema.dylib
These libs are outside <prefix>/lib so I changed them to absolute path.

However, I have other libs built in <prefix>/lib that are referenced with 
relative path, for instance:
@rpath/libadalang.dylib
These are not changed by gtk-mac-bundler so I've added rpath 
"@executable_path/../Resources/lib" and I've deleted all rpath with 
<prefix>/lib in executable and all libs.
I've checked with otool that the only remaining rpath is 
"@executable_path/../Resources/lib".

But when executing the app I've messages for instance:
objc[45002]: Class GdkQuartzView is implemented in both 
/opt/gps-build/osx_bundle/_build/Applications/gnatstudio.app/Contents/Resources/lib/libgdk-3.0.dylib
 (0x113f0a960) and /opt/xnadalib-2020/lib/libgdk-3.0.dylib (0x11ed97960). One 
of the two will be used. Which one is undefined.

I do not understand where there are these references to  <prefix>/lib 
(/opt/xnadalib-2020/lib in my case).
Any idea is welcome.

Thanks, Pascal.
https://blady.pagesperso-orange.fr


_______________________________________________
gtk-osx-users-list mailing list
gtk-osx-users-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-osx-users-list

Reply via email to