Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

  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
share|improve this question

I Have found the solution in

Do like this

#include <linux/config.h> 
share|improve this answer


sudo mv gspcav1-20071224.tar.gz /usr/src
cd /usr/src
sudo tar zxvf gspcav1-20071224.tar.gz
sudo apt-get install linux-headers-$(uname -r) build-essential make automake autoconf g++ gcc
sudo apt-get remove --purge gspca*
cd gspcav1-20071224
sudo make
sudo make install
sudo depmod -ae
sudo modprobe gspca
share|improve this answer
I followed your instructions and when make it shows errors. How to solve it? Thank you~ – sam Jun 21 '12 at 7:09
Same errors as the ones in your question? – jasmines Jun 21 '12 at 7:13
Yes,I revised my original post with the last message after following your instuctions. And it's the same with my original instructions. So I try to touch header file but failed. – sam Jun 21 '12 at 14:23
my error: linux/config.h: No such file or directory – harayz Jul 30 '15 at 4:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.