Tiny210 port mjpeg-streamer
1. libjpeg library Port 1. 1. Unzip src.v6b.tar.gz and go to its directory 1.2) Configure source code. /configure CC = arm-linux-gcc -- host = arm-linux -- prefix =/usr/local/jpeg -- enable-shared --
Enable-static (if an error is prompted, first./configure and then make clean before reconfiguration)
1.3) make compile source code
1.4) make install: there is no such text directory, so we can create it manually and then make install.
2. Port mjpegstreamer 2.1)to decompress mjpg-streamer-r136.tar.bz2 and go to its directory 2.2.) modify the source code to modify plugins/input_uvc/Makfile.
CFLAGS =-O2-DLINUX-D_GNU_SOURCE-Wall-shared-fPIC
For CF
LAGS =-O2-DLINUX-D_GNU_SOURCE-Wall-shared-fPIC-I/usr/local/jpeg/include Modification
$ (CC) $ (CFLAGS)-ljpeg-o $ @ input_uvc.c v4l2uvc. lo jpeg_utils.lo dynctrl. lo
Is $ (
CC) $ (CFLAGS)-ljpeg-L/usr/local/jpeg/lib-o $ @ input_uvc.c v4l2uvc. lo has _utils.lo dynctrl. lo Note:/usr/local/jpeg is the directory installed after the jpeg library is transplanted above 2.3) Compile make CC = arm-linux-gcc 2.4) compile the compiled mjpegstreamer and *. so copy ALL TO THE DEVELOPMENT BOARD
2.5) Run mw.streamer (Note:/dev/video3 is the device used when the camera is connected to the Development Board. Different Development Boards may not be the same)
2.6) Run vlc on the computer where the VLC is installed and enter http: // ip /? Action = stream to play.