SDL编译安装问题

编译安装SDL2-2.0.5

第一次发博客,没考虑排版还望见谅

make报错

build/.libs/SDL_mirvideo.o: In function `MIR_InitDisplayFromOutput':
/ffmpeg/SDL2-2.0.5/src/video/mir/SDL_mirvideo.c:258: undefined reference to `mir_output_get_current_mode'
collect2: error: ld returned 1 exit status
Makefile:147: recipe for target 'build/libSDL2.la' failed
make: *** [build/libSDL2.la] Error 1

直接进入SDL_mirvideo.c,修改将mir_output_get_current_mode改成MIR_mir_output_get_current_mode或者是num_modes,

重新make

/ffmpeg/SDL2-2.0.5/src/video/mir/SDL_mirvideo.c: In function 'MIR_InitDisplayFromOutput':
/ffmpeg/SDL2-2.0.5/src/video/mir/SDL_mirvideo.c:258:61: warning: passing argument 1 of 'MIR_ConvertModeToSDLMode' makes pointer from integer without a cast [-Wint-conversion]
     SDL_DisplayMode current_mode = MIR_ConvertModeToSDLMode(num_modes, format);
                                                             ^
/ffmpeg/SDL2-2.0.5/src/video/mir/SDL_mirvideo.c:230:1: note: expected 'const MirOutputMode * {aka const struct MirOutputMode *}' but argument is of type 'int'
 MIR_ConvertModeToSDLMode(MirOutputMode const* mode, MirPixelFormat format)
 ^
  LTLINK build/libSDL2.la
只有个警告!

你可能感兴趣的:(sdl编译安装问题)