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

Missing check for libsdl2 dependency on unix build #294

Open
StefanoMarina opened this issue Nov 19, 2021 · 0 comments
Open

Missing check for libsdl2 dependency on unix build #294

StefanoMarina opened this issue Nov 19, 2021 · 0 comments

Comments

@StefanoMarina
Copy link

StefanoMarina commented Nov 19, 2021

In linux mint (debian), trying to launch build.sh will result in

In file included from src/api/renderer.c:2:0:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: Missing file or directory
 #include <SDL2/SDL.h>
          ^~~~~~~~~~~~
compilation terminated.
In file included from src/api/renderer_font.c:2:0:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: Missing file or directory
 #include <SDL2/SDL.h>
          ^~~~~~~~~~~~
compilation terminated.
src/api/system.c:1:10: fatal error: SDL2/SDL.h: Missing file or directory
 #include <SDL2/SDL.h>
          ^~~~~~~~~~~~
compilation terminated.

this is easily solved by adding libsdl2 sudo apt-get install libsdl2-dev , it would be a nice addition however to inform about the dependency on the README.md or automatically install libsdl2 inside the build.sh script.

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