Debian Wheezy: linux/videodev.h no such file or directory mjpg-streamer compile error

Problem: On Debian Wheezy Kernel 3.0 the compile of older video4linux (like mjpg-streamer)  scripts fails with message, cause linux/videodev.h was replaced by linux/videodev2.h

Error Message at "make" compile: ...linux/videodev.h : no such file or directory


  1. download last sources of mjpg-streamer-experimental and extract to /usr/src/mjpg-streamer/
  2. sudo cd /usr/src/mjpg-streamer/  and sudo make clean all, if fails then
  3. sudo apt-cache search videodev.h shows libvideo-ivtv-perl
  4. sudo aptitude install libvideo-ivtv-perl
  5. try recompile if fails..
  6. updatedb && locate videodev.h, shows not found ??  then..
  7. updatedb && locate videodev2.h, videodev2.h is found? then
  8. cp /usr/include/linux/videodev2.h  /usr/include/linux/videodev.h
  9. try recompile, if libjpeg errors appear then install
  10. sudo aptitude install libjpeg62-dev, the development libraries
  11. the webcam should work..
Impressum Datenschutz-DSGVO-GDPR

Last Update 08.10.2023 - Nonprofit Linux PC & Server Support since 2004 Tags: Linux Online Help, Linuxonlinehelp, Linux Support, Linux Hilfe