Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to compile Flashcam 1.4.5 from source on Lubuntu 13.04, but it complains:

cc -g -shared -fPIC -o flashcamhook.so flashcamhook.c
flashcamhook.c:31:28: fatal error: linux/videodev.h: No such file or directory

I have linux-headers-generic installed along with the headers for my current kernel (3.8.0-23-generic). I have installed libv4l-0,libv4lconvert0 and libv4l-dev. Build-essentials is installed.

I tried sym-linking (with absolute paths) videodev.h to libv4l1-videodev.h, then to videodev2.h, but this doesn't help either.

Working directory is /tmp/flashcam-1.4.5 .

What am I missing? Any ideas?

share|improve this question
    
What directories are you doing this in? Have you linked with absolute paths? –  belacqua Jun 7 '13 at 17:01
    
I'm working in /tmp. When linking, I used absolute paths. –  user165293 Jun 7 '13 at 17:27
add comment

1 Answer

Looks like its not possible to find videodev.h because it has been replaced with videodev2.h. More info, here

On my machine, I see this

/usr/src$ find . -name videodev*
./linux-headers-3.8.0-19/include/linux/videodev2.h
./linux-headers-3.8.0-19/include/uapi/linux/videodev2.h
./linux-headers-3.8.0-23/include/linux/videodev2.h
./linux-headers-3.8.0-23/include/uapi/linux/videodev2.h
./linux-headers-3.8.0-21/include/linux/videodev2.h
./linux-headers-3.8.0-21/include/uapi/linux/videodev2.h
./linux-headers-3.8.0-22-generic/include/linux/videodev2.h
./linux-headers-3.8.0-23-generic/include/linux/videodev2.h
./linux-headers-3.8.0-21-generic/include/linux/videodev2.h
./linux-headers-3.8.0-22/include/linux/videodev2.h
./linux-headers-3.8.0-22/include/uapi/linux/videodev2.h
./linux-headers-3.8.0-19-generic/include/linux/videodev2.h
/usr/src$ 
share|improve this answer
add comment

Your Answer

 
discard

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.