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
Re: linux/videodev.h: No such file or directory
According to this page, you need to:
After that you should be able to run the 'make' command again, from whatever directory you were running it before.
Code: Select all
sudo apt-get install libv4l-dev
cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h
Re: linux/videodev.h: No such file or directory
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.
same error. i am at a lose.
Re: linux/videodev.h: No such file or directory
After you did those steps, did the file /usr/include/libv4l1-videodev.h actually exist?
If you runwhat's the output?
If you run
Code: Select all
ls -l /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
Re: linux/videodev.h: No such file or directory
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.
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.
Re: linux/videodev.h: No such file or directory
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?
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?
Re: linux/videodev.h: No such file or directory
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
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
Re: linux/videodev.h: No such file or directory
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!
Thanks so much, email me and i'll send you a link to drive the rover!
Best regards!
Re: linux/videodev.h: No such file or directory
Happy to have been of some help, even if it was only with Google-fu! 

Re: linux/videodev.h: No such file or directory
No thank you, i have only had the Pi two weeks so you where more help then you know! File trees, do on!
Thanks
Thanks