编译安装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);