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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew sdl no longer exists #2

Open
aegatlin opened this issue Oct 14, 2023 · 0 comments
Open

brew sdl no longer exists #2

aegatlin opened this issue Oct 14, 2023 · 0 comments

Comments

@aegatlin
Copy link

Hello, I'm reading "Genetic Algorithms in Elixir" for the (public discord) Elixir book club (which you are invited to 馃槃). Great book, thanks for making it 鉂わ笍

Ch 10 intros Tetris and the MacOS install calls for brew install sdl. sdl does not exist anymore.

There is sdl-compat12, which maintains API compat with sdl 1.2, but underneath is in sdl2: https://github.com/libsdl-org/sdl12-compat.

There is sdl2, which does not work with mix deps.compile.

I tried sdl-compat12 and got to the erl_nif.h problem and used this issue answer but got blocked on this error during mix.compile

clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [my/path/to/genetic/deps/alex/priv/alex/libale_c.so] Error 1
make[1]: *** [CMakeFiles/ale-c-lib.dir/all] Error 2
make: *** [all] Error 2

==> alex
warning: Mix compiler :ale was supposed to return {:ok | :noop | :error, [diagnostic]} but it returned :error
Generated alex app

My current work from the book is here: https://github.com/aegatlin/genetic , in case it's useful.

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