How do I build and install the gspca webcam driver?
- by sam
I tried to install gspca to run Orite webcam on Ubuntu 12.04 64-bit, but I failed.
It lost a lot of headers, here are my instructions but failed.
wget http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz
tar zxvf gspcav1-20071224.tar.gz
cd gspcav1-20071224/
sudo ./gspca_build
sudo touch /usr/src/linux-headers-3.2.0-25-generic/include/linux/config.h
sudo mkdir /usr/src/linux-headers-3.2.0-25-generic/include/asm
sudo touch /usr/src/linux-headers-3.2.0-25-generic/include/asm/semaphore.h
sudo touch /usr/src/linux-headers-3.2.0-25-generic/include/linux/videodev.h
sudo touch /usr/src/linux-headers-3.2.0-25-generic/include/linux/smp_lock.h
How to solve it?
I move to /usr/src and make:
sam@sam:/usr/src/gspcav1-20071224$ sudo make
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-25-generic'
CC [M] /usr/src/gspcav1-20071224/gspca_core.o
/usr/src/gspcav1-20071224/gspca_core.c:37:26: fatal error: linux/config.h: No such file or directory
compilation terminated.
make[2]: *** [/usr/src/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/usr/src/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic'
make: *** [default] Error 2
sam@sam:/usr/src/gspcav1-20071224$