在 Tomato 中配置 mjpg_streamer 遇上了奇怪的问题

2015-01-27 11:53:13 +08:00
 sxd1988

想在TomatoARM中配置网络摄像头,罗技的C270
根据
http://www.eefocus.com/spencer/blog/13-11/300486_e869d.html
这篇文章修改了makefile文件并编译成功。
运行
./mjpg_streamer -i "/jffs/camera/input_uvc.so --help"
(input_uvc使用了绝对路径)返回了这样的错误。
MJPG Streamer Version.: 2.0
ERROR: could not find input plugin
Perhaps you want to adjust the search path with:
# export LD_LIBRARY_PATH=/path/to/plugin/folder
dlopen: File not found
就算export LD_LIBRARY_PATH也没有用。

但是与此同时,这样做是可以正确返回帮助信息的
./mjpg_streamer -i "/jffs/camera/input_testpicture.so --help"
MJPG Streamer Version.: 2.0


Help for input plugin..: TESTPICTURE input plugin


The following parameters can be passed to this plugin:

[-d | --delay ]........: delay to pause between frames
[-r | --resolution]....: can be 960x720, 640x480, 320x240, 160x120


input_init() return value signals to exitroot@unknown:/jffs/camera#

载入了5个模块,lomod可以看到这样的信息
Module Size Used by Tainted: P
v4l2_int_device 1853 0
v4l2_common 3623 0
uvcvideo 54210 0
videodev 57161 2 v4l2_common,uvcvideo
v4l1_compat 12036 2 uvcvideo,videodev

dmesg可以看到这样的信息
hid: exports duplicate symbol hid_check_keys_pressed (owned by kernel)
usbcore: deregistering interface driver usbhid
usbcore: deregistering interface driver hiddev
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
hid: exports duplicate symbol hid_check_keys_pressed (owned by kernel)
input_core: exports duplicate symbol input_unregister_handle (owned by kernel)
videodev: Unknown symbol v4l_compat_translate_ioctl (err 0)
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
input: UVC Camera (046d:0825) as /class/input/input0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
应该是有找到设备。
就是input_uvc.so的问题,文件明明就在那里,可是不管怎么做都是提示File not found,很费解,在这请教各位大大了

3876 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/165793

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX