project-navigation
Personal tools

Author Topic: Revision 233 + gl_glx.c Joystick error  (Read 5387 times)

Hoehrer

  • Guest
Revision 233 + gl_glx.c Joystick error
« on: March 19, 2006, 04:39:34 pm »
With the current Revision 233 i get the following error on compile:

Code: [Select]
make targets BUILDDIR=debugi386 CFLAGS="-Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='\"0.12 Debug\"'"
make[1]: Entering directory `src/linux'
gcc -Wall -pipe -Dstricmp=strcasecmp -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DUSE_ALSA -DJoystick -DHAVE_DGA -DHAVE_VIDMODE -DHAVE_GETTEXT -g -DLINUX_VERSION='"0.12 Debug"' -fPIC  -o debugi386/ref_gl/gl_glx.o -c ../linux/gl_glx.c -I/usr/X11R6/include
../linux/gl_glx.c: In function 'OpenJoystick':
../linux/gl_glx.c:973: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c:973: error: (Each undeclared identifier is reported only once
../linux/gl_glx.c:973: error: for each function it appears in.)
../linux/gl_glx.c: In function 'PlatformJoyCommands':
../linux/gl_glx.c:993: error: 'joy_fd' undeclared (first use in this function)
../linux/gl_glx.c: In function 'CloseJoystick':
../linux/gl_glx.c:1008: error: 'joy_fd' undeclared (first use in this function)
make[1]: *** [debugi386/ref_gl/gl_glx.o] Fehler 1
make[1]: Leaving directory `src/linux'


Werner

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Revision 233 + gl_glx.c Joystick error
« Reply #1 on: March 19, 2006, 07:56:23 pm »
try to set the joystick var to no in the makefile. i'll fix this with the next commit (hopefully)

Hoehrer

  • Guest
Revision 233 + gl_glx.c Joystick error
« Reply #2 on: March 20, 2006, 05:40:31 pm »
Quote from: "Mattn"
try to set the joystick var to no in the makefile. i'll fix this with the next commit (hopefully)


Thanks, that removed _this_ error. Let's see if i get it to run again now :D

Werner

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Revision 233 + gl_glx.c Joystick error
« Reply #3 on: March 20, 2006, 08:13:18 pm »
there was just a missing static int declaration - it should be fixed and is in svn (rev.234)

please report any problems.

Hoehrer

  • Guest
Revision 233 + gl_glx.c Joystick error
« Reply #4 on: March 21, 2006, 10:29:48 pm »
Compiles fine with 234

Werner