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

Generate .dylib on OSX #223

Open
notchris opened this issue Oct 2, 2021 · 0 comments
Open

Generate .dylib on OSX #223

notchris opened this issue Oct 2, 2021 · 0 comments

Comments

@notchris
Copy link

notchris commented Oct 2, 2021

I was having some issues generate a .dylib file for sdl_gpu (required if using the bindings for nim). Hopefully these steps can help someone else (sorry if this is the wrong place to post this)

Pull repository

  1. cd sdl_gpu
  2. cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=~/Desktop/test -DBUILD_SHARED=ON
  3. make
  4. sudo make install
  5. clang -fpic -shared -Wl,-all_load -lglfw -lSDL2 test/lib/libSDL2_gpu.a -framework OpenGL -o libSDL2_gpu.dylib
  6. Move the generated libSDL2_gpu.dylib to usr/local/lib
  7. If you are missing other sdl2 packages like sdl2_mixer, those are available on homebrew.
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