darklegion / tremulous

Other
109 stars 41 forks source link

Bad SDL path #20

Open ghost opened 7 years ago

ghost commented 7 years ago

In the files (for example, sys_loadlib.h) when including sdl header files, the file the code includes is 'SDL.h'

Infact, most computers install SDL under /usr/include/SDL/SDL.H, which makes the code invalid Therefore, the include path should be 'SDL/SDL.H' and not 'SDL.h'

undeference commented 7 years ago

Isn't that the point of these lines in the Makefile?

    SDL_CFLAGS ?= $(shell pkg-config --silence-errors --cflags sdl2|sed 's/-Dmain=SDL_main//')
    SDL_LIBS ?= $(shell pkg-config --silence-errors --libs sdl2)
      SDL_CFLAGS ?= $(shell sdl2-config --cflags)
      SDL_LIBS ?= $(shell sdl2-config --libs)
wtfbbqhax commented 7 years ago

@TheLaughingCow This issue should be reported against upstream ioquake/ioq3