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

Running the demos on macOS fails, when sdl2 is missing #35

Closed
rwbr opened this issue Nov 16, 2020 · 2 comments · Fixed by #36
Closed

Running the demos on macOS fails, when sdl2 is missing #35

rwbr opened this issue Nov 16, 2020 · 2 comments · Fixed by #36
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@rwbr
Copy link
Contributor

rwbr commented Nov 16, 2020

I'm on macOS Big Sur 11.0.1. When I try to run one of the demos I get the following error message:

...

"-framework" "Security" "-lSDL2" "-lSystem" "-lresolv" "-lc" "-lm"
  = note: ld: library not found for -lSDL2
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error

error: could not compile `demo`.

To learn more, run the command again with --verbose.

To make the samples work I manually have to install sdl2 first by issuing the following command:

brew install sdl2

After that, the samples work on macOS too. Please update the README accordingly. Thank's.

@rafaelcaricio rafaelcaricio added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Nov 16, 2020
@rafaelcaricio
Copy link
Collaborator

rafaelcaricio commented Nov 16, 2020

@rwbr Thank you for the suggestion. Do you want to open a PR for this? I would be happy to accept it. If not, that is fine as well. I will update when I get some time.

@rwbr
Copy link
Contributor Author

rwbr commented Nov 16, 2020

Sure! I will update the documentation and open a PR when done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants