INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1
LOAD gspca in memory
FATAL: Module gspca not found.
PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-8-generic'
CC [M] /usr/src/modules/gspca/gspca_core.o
/usr/src/modules/gspca/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_ioctl’:
/usr/src/modules/gspca/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/usr/src/modules/gspca/gspca_core.c: At top level:
/usr/src/modules/gspca/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/usr/src/modules/gspca/gspca_core.c:2609: warning: initialization from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/usr/src/modules/gspca/gspca_core.c: In function ‘spca50x_create_sysfs’:
/usr/src/modules/gspca/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/usr/src/modules/gspca/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_probe’:
/usr/src/modules/gspca/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/usr/src/modules/gspca/gspca_core.o] Error 1
make[1]: *** [_module_/usr/src/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-8-generic'
make: *** [default] Error 2
On Jaunty i have done this:
sudo apt-get install gspca
sudo -i
tar jxvf gspca.tar.bz2
cd /usr/src/ modules/ gspca/
./gspca_build
I get....
./gspca_build
REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules
CLEAN gspca source tree .gspcadecoder. o.cmd decoder/*.o \
rm -r -f *.o decoder/
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
COMPILE gspca Please Wait ....!!
INSTALL gspca in the kernel binary tree drivers/ usb/media/ drivers/ usb/media/ spca5xx. ko drivers/ media/video/ gspca.ko drivers/ usb/media/
mkdir -p /lib/modules/`uname -r`/kernel/
rm -f /lib/modules/`uname -r`/kernel/
rm -f /lib/modules/`uname -r`/kernel/
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1
LOAD gspca in memory
FATAL: Module gspca not found.
PRINT COMPILATION MESSAGES if ERRORS look kgspca.err /usr/src/ modules/ gspca CC=cc modules linux-headers- 2.6.28- 8-generic' modules/ gspca/gspca_ core.o modules/ gspca/gspca_ core.c: 54:27: error: asm/semaphore.h: No such file or directory modules/ gspca/gspca_ core.c: In function ‘spca5xx_ioctl’: modules/ gspca/gspca_ core.c: 2463: error: implicit declaration of function ‘video_usercopy’ modules/ gspca/gspca_ core.c: At top level: modules/ gspca/gspca_ core.c: 2609: error: unknown field ‘owner’ specified in initializer modules/ gspca/gspca_ core.c: 2609: warning: initialization from incompatible pointer type modules/ gspca/gspca_ core.c: 2611: error: unknown field ‘type’ specified in initializer modules/ gspca/gspca_ core.c: In function ‘spca50x_ create_ sysfs’: modules/ gspca/gspca_ core.c: 2769: error: implicit declaration of function ‘video_ device_ create_ file’ modules/ gspca/gspca_ core.c: 2780: error: implicit declaration of function ‘video_ device_ remove_ file’ modules/ gspca/gspca_ core.c: In function ‘spca5xx_probe’: modules/ gspca/gspca_ core.c: 4301: error: incompatible types in assignment modules/ gspca/gspca_ core.o] Error 1 /usr/src/ modules/ gspca] Error 2 linux-headers- 2.6.28- 8-generic'
make -C /lib/modules/`uname -r`/build SUBDIRS=
make[1]: Entering directory `/usr/src/
CC [M] /usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
/usr/src/
make[2]: *** [/usr/src/
make[1]: *** [_module_
make[1]: Leaving directory `/usr/src/
make: *** [default] Error 2