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

How can I distribute the emulator with gl/glfw bindings? #14

Closed
djhworld opened this issue May 5, 2013 · 1 comment
Closed

How can I distribute the emulator with gl/glfw bindings? #14

djhworld opened this issue May 5, 2013 · 1 comment
Labels

Comments

@djhworld
Copy link
Owner

djhworld commented May 5, 2013

The go-gl/glfw and go-gl/gl go libraries bind to the C libraries which need to be installed on your machine to work.

This is a pain for distribution, so it's worth investigating the following

  • Can I package up the binary + shared libs together and then all run from the same directory?

e.g.

  • gomeboycolor
  • libglfw.so

etc

@djhworld
Copy link
Owner Author

I've managed to get the Linux binary to build with its dependencies (libGLEW and libglfw) linked statically

This has been a challenge to get working on OSX and Windows, so these are distributed with the dynamic libraries instead.

For OSX the gomeboy application is invoked with a thin shell script wrapper that sets DYLD_LIBRARY_PATH pointing to the lib directory distributed with the emulator.

For Windows you can just put the DLLs in the same directory as the binary and it will dynamically link against them.

I've raised issues #33 and #34 to investigate these

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

No branches or pull requests

1 participant