Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Gtk to work #33

Open
jonathanBieler opened this issue Nov 16, 2018 · 1 comment
Open

Getting Gtk to work #33

jonathanBieler opened this issue Nov 16, 2018 · 1 comment

Comments

@jonathanBieler
Copy link

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)

Any idea what's going on here ?

My build script:

https://gist.github.com/jonathanBieler/6f4e078b9294470479a504180a8ef887

@jonathanBieler
Copy link
Author

Maybe it's hopeless with Homebrew:

Homebrew/brew#4371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant