Unable to build on Linux
bound-variable opened this issue · comments
Alan commented
The build process fails for me. Here's the captured output:
compiling (unix)...
src/main.c:2:10: fatal error: SDL2/SDL.h: No such file or directory
2 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from src/rencache.h:5,
from src/rencache.c:2:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: No such file or directory
4 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from src/api/renderer.c:2:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: No such file or directory
4 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
src/api/system.c:1:10: fatal error: SDL2/SDL.h: No such file or directory
1 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from src/api/renderer_font.c:2:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: No such file or directory
4 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
In file included from src/renderer.c:6:
src/renderer.h:4:10: fatal error: SDL2/SDL.h: No such file or directory
4 | #include <SDL2/SDL.h>
| ^~~~~~~~~~~~
compilation terminated.
cleaning up...
done
- OS: Debian 11, Gnome 3.38.5
- Lua: 5.4.3
- Lite: 1.11
Александр commented
lite depends also on SDL2 C library and you need to install it, command lower should help(of course if SDL2 exists in repositories)
sudo apt-get install libsdl2-dev
Alan commented
That did it. Thanks again.