Installing SDL on OSX

前端 未结 4 1098
面向向阳花
面向向阳花 2021-01-16 02:30

I downloaded SDL2-2.0.3. I ran ./configure && make && make install.

I\'ve also tried brew install SDL2.

<
4条回答
  •  一整个雨季
    2021-01-16 03:27

    You need to run

    • sdl2-config --cflags which will give you the compile flags, and
    • sdl2-config --libs which will give you the linker flags

    needed for using SDL2.

    The flags will vary by platform which is why you should use sdl2-config instead of hardcoding some specific flags into your Makefile or other build script.

提交回复
热议问题