You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# define the names and targets of the pluginsPLUGINS = input_uvc.so
PLUGINS += output_file.so
PLUGINS += output_udp.so
PLUGINS += output_http.so
PLUGINS += input_testpicture.so
#PLUGINS += output_autofocus.so#PLUGINS += input_gspcav1.soPLUGINS += input_file.so
PLUGINS += output_rtsp.so
# PLUGINS += output_ptp2.so # commented out because it depends on libgphoto# PLUGINS += input_control.so # commented out because the output_http does it's job# PLUGINS += input_http.so # PLUGINS += output_viewer.so # commented out because it depends on SDL
上一篇文章在树莓派上简单的测试了一下USB摄像头通过mjpg-streamer推流的步骤,本篇记录使用全志的V3S替代树莓派实现这个功能。由于树莓派上有包管理工具,所以可以直接使用
apt-get
指令来安装需要的软件脚本,但是V3S没有包管理,需要自己移植并且交叉编译。本篇文章是一个巨坑,请谨慎参考
下一篇文章会填坑:多USB摄像头在同一USB总线上开启
一、开发环境
开发板:荔枝派zero
buildroot:2018.08.2
FLASH:32M
编译环境:WIN10 WSL 和 Github Codepaces
具体参考:V3s buildroot 一键生成打包生成32M spi flash 镜像, jffs2 文件系统, 默认启动 Qt 模拟时钟demo,
二、开启UVC摄像头
进入
linux-zero-4.13.y
目录,可通过make menuconfig
启用,也可以直接编辑.config
文件,主要是启用UVC
和V4L2
具体参考1:嵌入式Linux平台下的UVC驱动和V4L2
具体参考2:关于V3S使用usb摄像头的问题
具体参考3:V3S插入USB设备没有反应
具体参考4:荔枝派Zero(全志V3S)驱动开发之USB摄像头
具体参考5:Linux UVC driver and tools
具体参考6:荔枝派Zero(全志V3S)驱动开发之USB摄像头 1
三、交叉编译mjpg-streamer
libjpeg库安装
tar -vxzf jpegsrc.v9e.tar.gz
./configure CC=/mnt/d/MICROPYTHON/V3S/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc --prefix=$PWD/_install --host=arm-linux-gnueabihf --enable-shared --enable-static
make
make install
mjpg-streamer编译
plugins
目录下的makefile
文件,指向自己的路径。make CC=/mnt/d/MICROPYTHON/V3S/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc
编译,结束后拷贝文件到V3S
中:具体参考1:荔枝派Zero(全志V3S)驱动开发之RGB LCD屏幕显示jpg图片
具体参考2:荔枝派Zero(全志V3S)驱动开发之USB摄像头 2
具体参考3:mjpeg-streamer交叉编译
四、运行mjpg-streamer
如果报权限的错误,执行
chmod 777 /bin/mjpg_streamer
然后访问:http://192.168.10.35:8080
五、其他
报错
Unsupported relocation type: R_X86_64_PLT32 (4)
解决方案:x86: Treat R_X86_64_PLT32 as R_X86_64_PC32编译指令
The text was updated successfully, but these errors were encountered: