SDL.h: No such file or directory

Hello,

I am building ioq3 148603c95162468bf14a30d92593312b3e6570b7 on Slackware 14.1 following these steps: http://ioquake3.org/get-it/source-codes/

After typing “make”, I got:
“code/client/…/sys/sys_loadlib.h:39:19: fatal error: SDL.h: No such file or directory”

That’s strange because if I understand the content of the “sys_loadlib.h” file, I can see that it is only if the “USE_LOCAL_HEADERS” variable is set that the “SDL.h” file is included… So, it should include <SDL.h> instead of “SDL.h” in my case… So, why this error please?

Thank you.
Best regards.

Solved! In fact it is because SDL2 is required and not SDL.
I have installed SDL2 and no problem now, it compiles fine.

1 Like

I have just the same problem.
SDL2 is installed. What do i do?

Did you get the source code from https://github.com/ioquake/ioq3? What operating system? Please post the entire compile log.