Skip to content

Instantly share code, notes, and snippets.

@rea987
Created February 27, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rea987/e1ea1f677cd33bf09dd04397047366bc to your computer and use it in GitHub Desktop.
Save rea987/e1ea1f677cd33bf09dd04397047366bc to your computer and use it in GitHub Desktop.
$ make
Scanning dependencies of target SDL
[ 25%] Building C object CMakeFiles/SDL.dir/src/SDL12_compat.c.o
[ 50%] Linking C shared library libSDL-1.2.so
[ 50%] Built target SDL
Scanning dependencies of target testsprite
[ 75%] Building C object CMakeFiles/testsprite.dir/test/testsprite.c.o
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c: In function ‘LoadSprite’:
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:44:28: error: ‘SDL_SRCCOLORKEY’ undeclared (first use in this function); did you mean ‘SDL_SCANCODE_Y’?
SDL_SetColorKey(sprite, (SDL_SRCCOLORKEY|SDL_RLEACCEL),
^~~~~~~~~~~~~~~
SDL_SCANCODE_Y
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:44:28: note: each undeclared identifier is reported only once for each function it appears in
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:49:9: warning: implicit declaration of function ‘SDL_DisplayFormat’; did you mean ‘SDL_AllocFormat’? [-Wimplicit-function-declaration]
temp = SDL_DisplayFormat(sprite);
^~~~~~~~~~~~~~~~~
SDL_AllocFormat
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:49:7: warning: assignment to ‘SDL_Surface *’ {aka ‘struct SDL_Surface *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
temp = SDL_DisplayFormat(sprite);
^
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c: In function ‘MoveSprites’:
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:95:25: error: ‘SDL_DOUBLEBUF’ undeclared (first use in this function); did you mean ‘SDL_DROPBEGIN’?
if ( (screen->flags & SDL_DOUBLEBUF) == SDL_DOUBLEBUF ) {
^~~~~~~~~~~~~
SDL_DROPBEGIN
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:112:3: warning: implicit declaration of function ‘SDL_Flip’; did you mean ‘SDL_Quit’? [-Wimplicit-function-declaration]
SDL_Flip(screen);
^~~~~~~~
SDL_Quit
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:114:3: warning: implicit declaration of function ‘SDL_UpdateRects’; did you mean ‘SDL_UpdateTexture’? [-Wimplicit-function-declaration]
SDL_UpdateRects(screen, nupdates, sprite_rects);
^~~~~~~~~~~~~~~
SDL_UpdateTexture
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c: In function ‘FastestFlags’:
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:122:8: error: unknown type name ‘SDL_VideoInfo’
const SDL_VideoInfo *info;
^~~~~~~~~~~~~
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:125:11: error: ‘SDL_FULLSCREEN’ undeclared (first use in this function); did you mean ‘SDL_USEREVENT’?
flags |= SDL_FULLSCREEN;
^~~~~~~~~~~~~~
SDL_USEREVENT
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:128:9: warning: implicit declaration of function ‘SDL_GetVideoInfo’; did you mean ‘SDL_GetPowerInfo’? [-Wimplicit-function-declaration]
info = SDL_GetVideoInfo();
^~~~~~~~~~~~~~~~
SDL_GetPowerInfo
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:128:7: warning: assignment to ‘const int *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
info = SDL_GetVideoInfo();
^
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:129:11: error: request for member ‘blit_hw_CC’ in something not a structure or union
if ( info->blit_hw_CC && info->blit_fill ) {
^~
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:129:31: error: request for member ‘blit_fill’ in something not a structure or union
if ( info->blit_hw_CC && info->blit_fill ) {
^~
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:131:12: error: ‘SDL_HWSURFACE’ undeclared (first use in this function); did you mean ‘SDL_SWSURFACE’?
flags |= SDL_HWSURFACE;
^~~~~~~~~~~~~
SDL_SWSURFACE
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:140:12: error: request for member ‘video_mem’ in something not a structure or union
if ( info->video_mem*1024 > (height*width*bpp/8) ) {
^~
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:141:13: error: ‘SDL_DOUBLEBUF’ undeclared (first use in this function); did you mean ‘SDL_DROPBEGIN’?
flags |= SDL_DOUBLEBUF;
^~~~~~~~~~~~~
SDL_DROPBEGIN
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c: In function ‘main’:
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:170:29: error: ‘SDL_ANYFORMAT’ undeclared (first use in this function); did you mean ‘SDL_HINT_NORMAL’?
videoflags = SDL_SWSURFACE|SDL_ANYFORMAT;
^~~~~~~~~~~~~
SDL_HINT_NORMAL
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:194:18: error: ‘SDL_HWSURFACE’ undeclared (first use in this function); did you mean ‘SDL_SWSURFACE’?
videoflags ^= SDL_HWSURFACE;
^~~~~~~~~~~~~
SDL_SWSURFACE
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:197:18: error: ‘SDL_DOUBLEBUF’ undeclared (first use in this function); did you mean ‘SDL_DROPBEGIN’?
videoflags ^= SDL_DOUBLEBUF;
^~~~~~~~~~~~~
SDL_DROPBEGIN
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:203:18: error: ‘SDL_FULLSCREEN’ undeclared (first use in this function); did you mean ‘SDL_USEREVENT’?
videoflags ^= SDL_FULLSCREEN;
^~~~~~~~~~~~~~
SDL_USEREVENT
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:216:11: warning: implicit declaration of function ‘SDL_SetVideoMode’; did you mean ‘SDL_GetVideoDriver’? [-Wimplicit-function-declaration]
screen = SDL_SetVideoMode(width, height, video_bpp, videoflags);
^~~~~~~~~~~~~~~~
SDL_GetVideoDriver
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:216:9: warning: assignment to ‘SDL_Surface *’ {aka ‘struct SDL_Surface *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
screen = SDL_SetVideoMode(width, height, video_bpp, videoflags);
^
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:281:24: error: ‘SDL_HWACCEL’ undeclared (first use in this function); did you mean ‘SDL_RLEACCEL’?
if ( (sprite->flags & SDL_HWACCEL) == SDL_HWACCEL ) {
^~~~~~~~~~~
SDL_RLEACCEL
/home/rifat/İndirilenler/sdl12-compat/test/testsprite.c:299:6: warning: implicit declaration of function ‘SDL_WarpMouse’; did you mean ‘SDL_CaptureMouse’? [-Wimplicit-function-declaration]
SDL_WarpMouse(screen->w/2, screen->h/2);
^~~~~~~~~~~~~
SDL_CaptureMouse
make[2]: *** [CMakeFiles/testsprite.dir/build.make:63: CMakeFiles/testsprite.dir/test/testsprite.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/testsprite.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment