Support for Homebrew?
I'm trying to bundle a GTK (gtkmm) application for OS X using gtk-mac-bundler, but since only homebrew carries all dependencies I need I'm building the application using it.
What I've done to get it working it to remove the last / from this regex and instead added it to end of the RIGHT_PREFIX
env var inside the run-install-name-tool-change.sh file (and the few times in project.py where @executable_path
comes up) (every path inside the bundlefile that begins with ${prefix...} is not allowed to have a slash behind the prefix...}. This actually manages to build an application bundle (otool -L also reports that the binary seems to link to dylibs inside the bundle), however it doesn't launch. When running the binary inside the bundle directly I get following log:
sp1rit@sp1rits-iMac notekit % ~/Desktop/NoteKit.app/Contents/MacOS/notekit
2021-05-25 19:42:41.950 defaults[10798:273592]
The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does not exist
objc[10793]: Class GdkQuartzView is implemented in both /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/Cellar/gtk+3/3.24.29/lib/libgdk-3.0.dylib (0x10215f530) and /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/opt/gtk+3/lib/libgdk-3.0.dylib (0x101522530). One of the two will be used. Which one is undefined.
objc[10793]: Class GdkQuartzNSWindow is implemented in both /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/Cellar/gtk+3/3.24.29/lib/libgdk-3.0.dylib (0x10215f580) and /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/opt/gtk+3/lib/libgdk-3.0.dylib (0x101522580). One of the two will be used. Which one is undefined.
objc[10793]: Class gdkCoreCursor is implemented in both /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/Cellar/gtk+3/3.24.29/lib/libgdk-3.0.dylib (0x10215f5d0) and /Users/sp1rit/Desktop/NoteKit.app/Contents/Resources/opt/gtk+3/lib/libgdk-3.0.dylib (0x1015225d0). One of the two will be used. Which one is undefined.
(process:10793): GLib-GObject-WARNING **: 19:42:42.216: cannot register existing type 'gtkmm__GBinding'
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.225: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_insert: assertion 'pool != NULL' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.226: g_param_spec_pool_lookup: assertion 'pool != NULL' failed
** (process:10793): WARNING **: 19:42:42.226: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GtkApplication" has no property named "application_id"
(process:10793): GLib-GObject-WARNING **: 19:42:42.227: '(NULL)::application-id' is not a valid property name; '(NULL)' is not a GObject subtype
(process:10793): GLib-GObject-WARNING **: 19:42:42.228: cannot register existing type 'GdkDisplayManager'
(notekit-bin:10793): GLib-CRITICAL **: 19:42:42.228: g_once_init_leave: assertion 'result != 0' failed
(process:10793): GLib-GObject-CRITICAL **: 19:42:42.228: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
^C
(the applications stays in a frozen state until I send SIGINT [or press forcequit if I launched the bundle using the gui])