V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
sxd1988
V2EX  ›  问与答

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

  •  
  •   sxd1988 · 2015-01-27 11:53:13 +08:00 · 3851 次点击
    这是一个创建于 3594 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2877 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:27 · PVG 21:27 · LAX 05:27 · JFK 08:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.