fingers99
09-14-2003, 08:07 PM
Well, actually. it's a gamepad (MS Sidewinder USB)
Trying to build Linux Joystick driver v1.2.15. (Doesn't seem to be a deb package).
Any ideas where to point the modules?
The makefile suggests:
#MODDIR = /lib/modules/preferred/misc# # RedHat location
# MODDIR = /lib/modules/current/misc# # For some others?
neither of which seem appropriate. BTW, I want to build it with loadable modules, not inside the kernel. So far, I get:
root@molehole:/home/john/joystick-1.2.15# make
gcc -O2 -Wall -pipe -m486 -fomit-frame-pointer -I. -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -c joystick.c -o joystick.o
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from linux/joystick.h:33,
from joystick.c:40:
/usr/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
In file included from joystick.c:43:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
make: *** [joystick.o] Error 1
And
sh-2.05b$ locate modversions.h
/usr/src/linux-2.4.20-xfs/include/config/modversions.h
/usr/src/linux-2.4.20-xfs/include/linux/modversions.h
Ideas welcomed!
:wink:
Trying to build Linux Joystick driver v1.2.15. (Doesn't seem to be a deb package).
Any ideas where to point the modules?
The makefile suggests:
#MODDIR = /lib/modules/preferred/misc# # RedHat location
# MODDIR = /lib/modules/current/misc# # For some others?
neither of which seem appropriate. BTW, I want to build it with loadable modules, not inside the kernel. So far, I get:
root@molehole:/home/john/joystick-1.2.15# make
gcc -O2 -Wall -pipe -m486 -fomit-frame-pointer -I. -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -c joystick.c -o joystick.o
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from linux/joystick.h:33,
from joystick.c:40:
/usr/include/linux/module.h:21:34: linux/modversions.h: No such file or directory
In file included from joystick.c:43:
/usr/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
make: *** [joystick.o] Error 1
And
sh-2.05b$ locate modversions.h
/usr/src/linux-2.4.20-xfs/include/config/modversions.h
/usr/src/linux-2.4.20-xfs/include/linux/modversions.h
Ideas welcomed!
:wink: