Skip to content

Instantly share code, notes, and snippets.

@mdeguzis
Created February 6, 2016 15:27
Show Gist options
  • Save mdeguzis/7f93c1fcb41c0eada8e0 to your computer and use it in GitHub Desktop.
Save mdeguzis/7f93c1fcb41c0eada8e0 to your computer and use it in GitHub Desktop.
dpkg-source: info: using source format `3.0 (native)'
dpkg-source: info: building srb2 in srb2_2.1.14+git4481e02+bsos1.tar.xz
dpkg-source: info: building srb2 in srb2_2.1.14+git4481e02+bsos1.dsc
debian/rules build
mkdir -p /home/desktop/build-srb2-temp/srb2/bin/Linux/Release/debug
make -C /home/desktop/build-srb2-temp/srb2/src LINUX=1 NONX86=1 EXENAME=srb2 DBGNAME=debug/srb2 SDL_PKGCONFIG=sdl PNG_PKGCONFIG=libpng NOOBJDUMP=1
make[1]: Entering directory '/home/desktop/build-srb2-temp/srb2/src'
Creating dependency file, depend.dep
Created dependency file, depend.dep
sdl/i_system.c: In function ‘signal_handler’:
sdl/i_system.c:353:2: warning: implicit declaration of function ‘SDL_ShowSimpleMessageBox’ [-Wimplicit-function-declaration]
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
^
sdl/i_system.c:353:27: error: ‘SDL_MESSAGEBOX_ERROR’ undeclared (first use in this function)
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
^
sdl/i_system.c:353:27: note: each undeclared identifier is reported only once for each function it appears in
sdl/i_system.c: In function ‘joy_open’:
sdl/i_system.c:1159:5: warning: implicit declaration of function ‘SDL_JoystickNameForIndex’ [-Wimplicit-function-declaration]
CONS_Printf("#%d/(%s)\n", i+1, SDL_JoystickNameForIndex(i));
^
sdl/i_system.c:1159:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
sdl/i_system.c:1180:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
CONS_Printf("#%d/(%s)\n", i+1, SDL_JoystickNameForIndex(i));
^
sdl/i_system.c:1197:61: warning: passing argument 1 of ‘SDL_JoystickName’ makes integer from pointer without a cast
CONS_Printf(M_GetText("Joystick: %s\n"), SDL_JoystickName(JoyInfo.dev));
^
In file included from /usr/include/SDL/SDL_events.h:36:0,
from /usr/include/SDL/SDL.h:37,
from sdl/i_system.c:84:
/usr/include/SDL/SDL_joystick.h:61:38: note: expected ‘int’ but argument is of type ‘struct SDL_Joystick *’
extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index);
^
sdl/i_system.c: In function ‘joy_open2’:
sdl/i_system.c:1449:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
CONS_Printf("#%d/(%s)\n", i+1, SDL_JoystickNameForIndex(i));
^
sdl/i_system.c:1470:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
CONS_Printf("#%d/(%s)\n", i+1, SDL_JoystickNameForIndex(i));
^
sdl/i_system.c:1487:62: warning: passing argument 1 of ‘SDL_JoystickName’ makes integer from pointer without a cast
CONS_Printf(M_GetText("Joystick2: %s\n"), SDL_JoystickName(JoyInfo2.dev));
^
In file included from /usr/include/SDL/SDL_events.h:36:0,
from /usr/include/SDL/SDL.h:37,
from sdl/i_system.c:84:
/usr/include/SDL/SDL_joystick.h:61:38: note: expected ‘int’ but argument is of type ‘struct SDL_Joystick *’
extern DECLSPEC const char * SDLCALL SDL_JoystickName(int device_index);
^
sdl/i_system.c: In function ‘I_InitJoystick’:
sdl/i_system.c:1524:2: warning: implicit declaration of function ‘SDL_SetHintWithPriority’ [-Wimplicit-function-declaration]
SDL_SetHintWithPriority("SDL_XINPUT_ENABLED", "0", SDL_HINT_OVERRIDE);
^
sdl/i_system.c:1524:53: error: ‘SDL_HINT_OVERRIDE’ undeclared (first use in this function)
SDL_SetHintWithPriority("SDL_XINPUT_ENABLED", "0", SDL_HINT_OVERRIDE);
^
sdl/i_system.c: In function ‘I_InitJoystick2’:
sdl/i_system.c:1540:53: error: ‘SDL_HINT_OVERRIDE’ undeclared (first use in this function)
SDL_SetHintWithPriority("SDL_XINPUT_ENABLED", "0", SDL_HINT_OVERRIDE);
^
sdl/i_system.c: In function ‘I_GetJoyName’:
sdl/i_system.c:1585:12: warning: assignment makes pointer from integer without a cast
joyname = SDL_JoystickNameForIndex(joyindex);
^
sdl/i_system.c:1589:11: warning: assignment makes pointer from integer without a cast
joyname = SDL_JoystickNameForIndex(joyindex);
^
sdl/i_system.c: In function ‘I_StartupSystem’:
sdl/i_system.c:2243:2: warning: implicit declaration of function ‘SDL_GetVersion’ [-Wimplicit-function-declaration]
SDL_GetVersion(&SDLlinked);
^
sdl/i_system.c: In function ‘I_Error’:
sdl/i_system.c:2379:29: error: ‘SDL_MESSAGEBOX_ERROR’ undeclared (first use in this function)
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
^
make[1]: *** [../objs/Linux/SDL/Release/i_system.o] Error 1
Makefile:744: recipe for target '../objs/Linux/SDL/Release/i_system.o' failed
make[1]: Leaving directory '/home/desktop/build-srb2-temp/srb2/src'
make: *** [build] Error 2
debian/rules:74: recipe for target 'build' failed
dpkg-buildpackage: error: debian/rules build gave error exit status 2
@alama
Copy link

alama commented Feb 6, 2016

OK, this is compiling the SDL2 interface code with the SDL 1.2 headers
SDL2 interface code moved into src/sdl
while the old SDL 1.2 code was moved to src/sdl12 for old ports

@alama
Copy link

alama commented Feb 6, 2016

plus, this is the old Makefile, the new build system is cmake

@alama
Copy link

alama commented Feb 6, 2016

Change SDL_PKGCONFIG=sdl to SDL_PKGCONFIG=sdl2 in debian/rules

@alama
Copy link

alama commented Feb 6, 2016

Try commit bac39b1bc037d4075ee0c0fc687f2980f6d223ee

@Sans133
Copy link

Sans133 commented Apr 7, 2017

hey!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment