How to do I build and install the gspca webcam driver?
Posted
by
sam
on Ask Ubuntu
See other posts from Ask Ubuntu
or by sam
Published on 2012-06-20T08:44:16Z
Indexed on
2012/11/07
5:16 UTC
Read the original article
Hit count: 779
webcam
I tried to install gspca to run Orite webcam.
But I failed to install gspca on ubuntu 12.04 64 bits.
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?
Thank you~
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$
© Ask Ubuntu or respective owner