I followed up some Tutorial to install MJPG-Streamer but somehow it will not compile. Anybody know what is wrong?
sudo apt-get update
sudo apt-get install libjpeg8-dev imagemagick libv4l-dev
wget http://sourceforge.net/projects/mjpg-streamer/files/latest/download
sudo mv download mjpg.tar.gz
tar xzvf mjpg.tar.gz
cd mjpg-streamer-r63
make
Error
spcav4l.c:1117:14: error: ‘BASE_VIDIOCPRIVATE’ undeclared (first use in this function)
spcav4l.c:1117:14: error: invalid operands to binary << (have ‘int *’ and ‘int’)
spcav4l.c:1117:14: error: invalid operands to binary | (have ‘unsigned int’ and ‘int *’)
spcav4l.c:1117:14: error: invalid operands to binary | (have ‘int *’ and ‘unsigned int’)
spcav4l.c:1117:14: warning: passing argument 2 of ‘ioctl’ makes integer from pointer without a cast [enabled by default]
/usr/include/arm-linux-gnueabihf/sys/ioctl.h:42:12: note: expected ‘long unsigned int’ but argument is of type ‘int *’
Makefile:27: recipe for target 'spcav4l.lo' failed
make[1]: *** [spcav4l.lo] Error 1
make[1]: Leaving directory '/home/pi/mjpg/mjpg-streamer-r63/plugins/input_gspcav1'
Makefile:55: recipe for target 'input_gspcav1.so' failed
make: *** [input_gspcav1.so] Error 2
The Full Error Log can be find here: http://pastebin.com/Nuqee6Jh