Hey @NHDaly , I'm trying to make this work with Gtk but I'm getting stuck.
I've done something a bit similar to your SDL example. I first manually copy all the folders from Homebrew that I need in Libraries/... (I preserve Homebrew folder hierarchy instead of copying all the dylib in a single folder).
Then list all the libraries and fix the paths with install_name_tool (I'm using @loader_path instead of @rpath).
The problem is that I'm getting version error, I don't understand why:
dyld: Library not loaded: @loader_path/../Libraries/Cellar/glib/2.58.1/lib/libglib-2.0.0.dylib
Referenced from: /Users/jbieler/.julia/dev/GtkREPL/builddir/GtkREPL.app/Contents/Libraries/opt/glib/lib/libgobject-2.0.0.dylib
Reason: Incompatible library version: libgobject-2.0.0.dylib requires version 5801.0.0 or later, but libglib-2.0.0.dylib provides version 5201.0.0
fatal: error thrown and no exception handler available.
otool for libgobject-2.0.0.dylib gives me:
/Users/jbieler/.julia/dev/GtkREPL/builddir/GtkREPL.app/Contents/Libraries//opt/glib/lib/libgobject-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
@loader_path/../Libraries/Cellar/glib/2.58.1/lib/libglib-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
And on libglib-2.0.0.dylib:
/Users/jbieler/.julia/dev/GtkREPL/builddir/GtkREPL.app/Contents/Libraries//Cellar/glib/2.58.1/lib/libglib-2.0.0.dylib (compatibility version 5801.0.0, current version 5801.1.0)
Hey @NHDaly , I'm trying to make this work with Gtk but I'm getting stuck.
I've done something a bit similar to your SDL example. I first manually copy all the folders from Homebrew that I need in
Libraries/...
(I preserve Homebrew folder hierarchy instead of copying all the dylib in a single folder).Then list all the libraries and fix the paths with
install_name_tool
(I'm using@loader_path
instead of@rpath
).The problem is that I'm getting version error, I don't understand why:
otool for
libgobject-2.0.0.dylib
gives me:And on
libglib-2.0.0.dylib
:Any idea what's going on here ?
My build script:
https://gist.github.com/jonathanBieler/6f4e078b9294470479a504180a8ef887