Compile Error Debian Wheezy Kernel 3.0
Status: Inactive
Brought to you by:
tom_stoeveken
System Debian Wheezy Kernel 3.0 i386
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -c -o mjpg_streamer.o mjpg_streamer.c
mjpg_streamer.c:27:28: fatal error: linux/videodev.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make: *** [mjpg_streamer.o] Fehler 1
# apt-get install libv4l-dev
Then edit mjpg_streamer.c to replace "#include <linux/videodev.h>" with "#include <libv4l1-videodev.h>"
Found with Google. I now have more compilation errors though. Ubuntu 11.10.
For a solution to this problem see http://www.linuxonlinehelp.de/?p=1332
It worked for me. After it compiles ok, run:
sh start.sh
I repeat the steps here (copied from the link above):
- download last sources of mjpg-streamer-experimental and extract to /usr/src/mjpg-streamer/
- sudo cd /usr/src/mjpg-streamer/ and sudo make clean all, if fails then
- sudo apt-cache search videodev.h shows libvideo-ivtv-perl
- sudo aptitude install libvideo-ivtv-perl
- try recompile if fails..
- updatedb && locate videodev.h, shows not found ?? then..
- updatedb && locate videodev2.h, videodev2.h is found? then
- cp /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
- try recompile, if libjpeg errors appear then install
- sudo aptitude install libjpeg62-dev, the development libraries
- recompile..now the webcam should work..
I actually went on and changed all references to "videodev.h" in mjpg-streamer :
from:
#include <linux/videodev.h>
with
#include <libv4l1-videodev.h>
Thanks for this go to Thomas Sternasky of http://www.linuxonlinehelp.de
Dimitrios