I have installed all the sdl2 libraries that I could find in PPM, but I don't think any of them contained its dev libraries. Though when manually searching for sdl libraries using
Code: Select all
find / -name sdl*
I get the names of a lot of sdl header files.
I think then only the sdl2 image dev package would be needed, which I cannot find anywhere.
Also when I try to compile any sdl c program I get an error saying "/usr/bin/ld: cannot find -lSDL2_image" when I do not include sdl2 image header file from within the code (#include prepocessor directive), and when I include the header file I get an error saying "hello3_image.c:8:10: fatal error: SDL2/SDL_image.h: No such file or directory".
The difference in the errors is only due to the one getting error at preprocessing and one at linking, I think.
So, how can I install SDL2_image development files, and the other SDL2 dev files you think might be necessary?