Motion JPEG/Notes

From Omnia
Jump to navigation Jump to search

Failed building instructions

Build:

sudo apt-get install libjpeg8-dev imagemagick
wget "http://sourceforge.net/projects/mjpg-streamer/files/latest/download" -O mjpg-streamer_latest.tar.gz
tar xvzf mjpg-streamer_latest.tar.gz
cd mjpg-streamer-*
# may need to fix videodev.h below...
make

Fix videodev.h: [1] (DIDN'T WORK!)

cd /usr/include/linux
sudo ln -s ../libv4l1-videodev.h videodev.h

Fix videodev.h #2 (also didn't work)

apt-get install linux-libc-dev
find . -name "*.c" -exec sed -i 's#linux/videodev.h#linux/videodev2.h#g' {} \;
find . -name "*.h" -exec sed -i 's#linux/videodev.h#linux/videodev2.h#g' {} \;

Failed to compile due to the videodev.h issue!

References: