Hi, I want using SDL 2.0.12 with framebuffer and for this download the last version and configure with the --enable-video-directfb, but when execute make I have this error:
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_events.c: In function ‘ProcessInputEvent’:
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_events.c:312:9: warning: variable ‘kbd_idx’ set but not used [-Wunused-but-set-variable]
-
int kbd_idx;*
-
^~~~~~~*
- CC build/SDL_DirectFB_modes.lo*
- CC build/SDL_DirectFB_mouse.lo*
- CC build/SDL_DirectFB_opengl.lo*
- CC build/SDL_DirectFB_render.lo*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c: In function ‘SetBlendMode’:
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:202:9: error: case label not within a switch statement -
case SDL_BLENDMODE_MUL:*
-
^~~~*
In file included from /iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_window.h:25:0,
-
from /iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:24:*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:205:67: error: ‘DSBF_DSTCOLOR’ undeclared (first use in this function); did you mean ‘DSBF_DESTCOLOR’?
-
SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));*
-
^*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_video.h:99:49: note: in definition of macro ‘SDL_DFB_CHECK’
- #define SDL_DFB_CHECK(x…) do { sdl_dfb_check( x, FILE, LINE); } while (0)*
-
^*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:205:67: note: each undeclared identifier is reported only once for each function it appears in
-
SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));*
-
^*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_video.h:99:49: note: in definition of macro ‘SDL_DFB_CHECK’
- #define SDL_DFB_CHECK(x…) do { sdl_dfb_check( x, FILE, LINE); } while (0)*
-
^*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:208:13: error: break statement not within loop or switch
-
break;*
-
^~~~~*
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c: At top level:
/iSys/SDL2/SDL2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:212:1: error: expected identifier or ‘(’ before ‘}’ token
- }*
- ^*
Makefile:674: recipe for target ‘build/SDL_DirectFB_render.lo’ failed
make: *** [build/SDL_DirectFB_render.lo] Error 1
Can you help me please!