想在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,很费解,在这请教各位大大了