Trying to compile gspca on Ubuntu 9.04 or another recent Linux distribution? We have the way!

gspca

On August 12th, 2009 Baires Norte Lug (not verified) says:Linux Journal Magazine

Kernel >= 2.6.27

wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
wget http://www.bairesnortelug.com.ar/diff/gspca.diff
tar -zxvf gspcav1-20071224.tar.gz
cd gspcav1-20071224
cat ../gspca.diff | patch -p1
sudo ./gspca_build

Happy !!!!

Thz http://www.bairesnortelug.com.ar

Slackware Rulez 😛

Share Button

7 Replies to “Trying to compile gspca on Ubuntu 9.04 or another recent Linux distribution? We have the way!”

  1. Error:

    nik@nik:~/Desktop/2.6.9/gspcav1-20071224$ sudo ./gspca_build

    REMOVE the old module if present
    ERROR: Module gspca does not exist in /proc/modules

    CLEAN gspca source tree
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i
    *.symvers *.err

    COMPILE gspca Please Wait ….!!

    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=/home/nik/Desktop/2.6.9/gspcav1-20071224 CC=cc modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.31-19-generic’
    CC [M] /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.o
    In file included from /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:845:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
    /home/nik/Desktop/2.6.9/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
    In file included from /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:853:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:2463: warning: passing argument 1 of ‘video_usercopy’ from incompatible pointer type
    include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:2463: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:2463: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:2463: error: too many arguments to function ‘video_usercopy’
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c: At top level:
    /home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
    make[2]: *** [/home/nik/Desktop/2.6.9/gspcav1-20071224/gspca_core.o] Error 1
    make[1]: *** [_module_/home/nik/Desktop/2.6.9/gspcav1-20071224] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-19-generic’
    make: *** [default] Error 2
    nik@nik:~/Desktop/2.6.9/gspcav1-20071224$ sudo make clean
    rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o
    .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i
    *.symvers *.err

  2. Doesn’t work with 2.6.31.20-generic

    /home/jariza/Escritorio/webcam/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function

        1. Is there any news abuot gspca updates? I’m using Ubuntu 10.04 and i hope i can use my webcam as soon as possible!!!
          Thanks a lot,
          Simona 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *