1. Libjpeg Library Migration1.1) Unzip the jpegsrc.v6b.tar.gz and enter its directory1.2) Configure the source code./configure CC=ARM-LINUX-GCC--host=arm-linux--prefix=/usr/local/jpeg--enable-shared--
Enable-static (if prompted wrong, first./configure after make clean and then reconfigure)
1.3) Make compile source code
1.4) make install here to suggest that there is no that text directory, so we have to manually create, and then make the install.
2. Transplant Mjpegstreamer 2.1) Unzip mjpg-streamer-r136.tar.bz2 and enter its directory 2.2) modify the source code modification Plugins/input_uvc/makfile Modify
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 modifications
$ (CC) $ (CFLAGS)-ljpeg-o [email protected] input_uvc.c V4l2uvc.lo Jpeg_utils.lo Dynctrl.lo
Is $ (
CC) $ (CFLAGS)-ljpeg-l/usr/local/jpeg/lib-o [email protected] INPUT_UVC.C V4l2uvc.lo jpeg_utils.lo dynctrl.lo Note:/usr/local/jpegIs the directory that was installed after porting the JPEG Library 2.3) compile make CC=ARM-LINUX-GCC 2.4) copy all the compiled Mjpegstreamer and *.so under the source to the Development Board
2.5) Run Mjpegstreamer (note that the/DEV/VIDEO3 is the device when the camera is plugged into the development Board, not necessarily the same as the Development Board)
2.6) Run VLC on the computer where VLC is installed and enter Http://ip/?action=stream to play.
tiny210 porting Mjpeg-streamer