Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

linux/videodev.h: No such file or directory

Thu Jun 05, 2014 12:17 am

Hello all I am trying to install mjpg-streamer-r63 on my Pi but i get this error on the make command,

linux/videodev.h: No such file or directory

I have installed libjpeg8-dev
and i have done the update and upgrade command.
i can not seem to find an answer that i can understand (newbie) On the net.
best regards.
Tony

johny
Posts: 64
Joined: Tue Apr 24, 2012 10:00 am
Location: Australia

Re: linux/videodev.h: No such file or directory

Thu Jun 05, 2014 12:56 pm

According to this page, you need to:

Code: Select all

sudo apt-get install libv4l-dev
cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h
After that you should be able to run the 'make' command again, from whatever directory you were running it before.

Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

Re: linux/videodev.h: No such file or directory

Thu Jun 05, 2014 8:15 pm

Thank you very much for the help, i did as instructed but it was no help, i even went so fare as to build a new version of the os on a new sd (with updates & upgrades) card and try to install mjpg-streamer on it, just in case i had mucked up the O.S.
same error. i am at a lose.

johny
Posts: 64
Joined: Tue Apr 24, 2012 10:00 am
Location: Australia

Re: linux/videodev.h: No such file or directory

Thu Jun 05, 2014 11:20 pm

After you did those steps, did the file /usr/include/libv4l1-videodev.h actually exist?
If you run

Code: Select all

ls -l /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
what's the output?

Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 1:06 am

I do not see the file!
this is the report that you asked me for, (not that i have a clue what i am looking at!)

pi@raspberrypi /usr/include/linux $ ls -l /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
-rw-r--r-- 1 root root 7135 Dec 11 12:26 /usr/include/libv4l1-videodev.h
lrwxrwxrwx 1 root root 21 Jun 5 20:28 /usr/include/linux/videodev.h -> ../libv4l1-videodev.h
pi@raspberrypi /usr/include/linux $

to me that looks like it is there?
I can not thank you enough! This is all very new to me.

johny
Posts: 64
Joined: Tue Apr 24, 2012 10:00 am
Location: Australia

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 1:20 am

Yep, that part is looking good.

Any chance you could post the full output from when you try to run 'make'? I've never used the mjpg-streamer stuff, so I'm just approaching it as a case of "it's software, and I know how to build software" :)

I also found a post over here on how to get mjpg-streamer to build which uses a slightly different approach - maybe that could help?

Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 1:44 am

This is the error i get when i run "make"
Thanks
Tony


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: No such file or directory
compilation terminated.
make: *** [mjpg_streamer.o] Error 1

Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 2:04 am

The post you sent me to worked!!
Thanks so much, email me and i'll send you a link to drive the rover!
Best regards!

johny
Posts: 64
Joined: Tue Apr 24, 2012 10:00 am
Location: Australia

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 2:31 am

Happy to have been of some help, even if it was only with Google-fu! :)

Tony-d
Posts: 103
Joined: Mon Jun 02, 2014 11:54 pm

Re: linux/videodev.h: No such file or directory

Fri Jun 06, 2014 5:08 pm

No thank you, i have only had the Pi two weeks so you where more help then you know! File trees, do on!
Thanks

Return to “Troubleshooting”