droidcamx for linux

  未分类

http://www.dev47apps.com/droidcam下载
解压
sudo ./install 320 240 (20 240, 480 360, 640 480, or 960 720)
rmmod v4l2loopback-dc

insmod /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko width=WIDTH height=HEIGHT (Where WIDTH and HEIGHT are numbers)
vim ~/.droidcam/settings

卸载
~/.droidcam/uninstall
rmmod v4l2loopback-dc
rm -f /usr/bin/droidcam /usr/bin/droidcam-cli
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/v4l2loopback-dc.ko

One Reply to “droidcamx for linux”

  • 报错:
    /home/qy/droidx/webcam/droidcam_v4l.c:148:3: error: implicit declaration of function ‘interruptible_sleep_on_timeout’ [-Werror=implicit-function-declaration]
    interruptible_sleep_on_timeout(&wq, HZ/10); /* wait max 1 second */
    ^
    /home/qy/droidx/webcam/droidcam_v4l.c:556:2: error: unknown field ‘current_norm’ specified in initializer
    .current_norm = V4L2_STD_NTSC_M,
    ^/home/qy/droidx/webcam/droidcam_v4l.c:606:22: error: expected ‘)’ before ‘int’
    module_param(width, int, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
    ^
    /home/qy/droidx/webcam/droidcam_v4l.c:607:22: error: expected ‘)’ before ‘int’
    module_param(height, int, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
    ^
    /home/qy/droidx/webcam/droidcam_v4l.c:609:20: error: expected declaration specifiers or ‘…’ before string constant
    MODULE_DESCRIPTION(“Android Webcam”);
    ^
    /home/qy/droidx/webcam/droidcam_v4l.c:610:15: error: expected declaration specifiers or ‘…’ before string constant
    MODULE_AUTHOR(“DEV47APPS”);
    ^
    /home/qy/droidx/webcam/droidcam_v4l.c:611:16: error: expected declaration specifiers or ‘…’ before string constant
    MODULE_LICENSE(“Apache”);
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:263: recipe for target ‘/home/qy/droidx/webcam/droidcam_v4l.o’ failed
    make[1]: *** [/home/qy/droidx/webcam/droidcam_v4l.o] Error 1
    Makefile:1345: recipe for target ‘_module_/home/qy/droidx/webcam’ failed
    make: *** [_module_/home/qy/droidx/webcam] Error 2
    make: Leaving directory ‘/usr/src/linux-headers-3.16.0-30-generic’

LEAVE A COMMENT

Captcha Code