Closed wuzy361 closed 3 years ago
At first , I got error when complie this project: main.c:1:10: fatal error: SDL2/SDL.h: 没有那个文件或目录 1 | #include <SDL2/SDL.h> | ^~~~ then I use sudo apt-get install libsdl2-gfx-dev fixed this error.
sudo apt-get install libsdl2-gfx-dev
I think this project should explain this dependence.
THANKS!
I encountered the same issue. On Arch/Manjaro Linux, it's yay -Syu sdl2_gfx.
yay -Syu sdl2_gfx
At first , I got error when complie this project: main.c:1:10: fatal error: SDL2/SDL.h: 没有那个文件或目录 1 | #include <SDL2/SDL.h> | ^
~~~ then I usesudo apt-get install libsdl2-gfx-dev
fixed this error.I think this project should explain this dependence.
THANKS!