View Single Post
Old September 24, 2018, 18:06   #28
t4nk
Swordsman
 
Join Date: May 2016
Posts: 330
t4nk is on a distinguished road
Quote:
Originally Posted by shirish View Post
The compilation terminated see https://paste.debian.net/1043948/
Ah, I see. I have SDL1 headers installed, so gcc looks into /usr/include and there is "SDL" directory there. You have only SDL2, so you have /usr/include/SDL2 (but not /usr/include/SDL). So it fails to find it (SDL_mixer API hasn't changed between 1 and 2).

Anyway, looks like you're close snd-sdl.c has two lines:

Code:
#include <SDL/SDL.h>
#include <SDL/SDL_mixer.h>
(lines 25 and 26)

Those need to be replaced with:

Code:
#include <SDL.h>
#include <SDL_mixer.h>
t4nk is offline   Reply With Quote