rxi / lite

A lightweight text editor written in Lua
MIT License
7.42k stars 353 forks source link

Unable to build on Linux #293

Closed bound-variable closed 3 years ago

bound-variable commented 3 years ago

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
AKonia commented 3 years ago

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

bound-variable commented 3 years ago

That did it. Thanks again.