Emerge v4l2loopback

1. Emerge v4l2loopback

Leonardo Ventura
leoventura

(usa Debian)

Enviado em 23/01/2016 - 21:13h

Boa noite pessoal, migrei recentemente para o Gentoo e estou com problemas com a webcam.
Eu utilizava um app para android para usar o celular como webcam, era o DroidCam. No site do desenvolvedor ( https://www.dev47apps.com/droidcam/linuxx/ ) é disponibilizado um software para download para "parear" o computador com o celular e criar o dispositivo /dev/video0.
Porém no gentoo esse software não funcionou, então resolvi instalar o modulo v4l2loopback pelo proprio portage, mas recebi alguns erros e a instalação falou, alguem pode me ajudar? Vou copiar aqui a saida do Build.log, por que tantos erros getcwd?
Desde já, agradeço.

 * Package: media-video/v4l2loopback-0.8.0
 * Repository: gentoo
 * Maintainer: naota@gentoo.org
 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux policykit userland_GNU
 * FEATURES: preserve-libs sandbox userpriv usersandbox
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.1.12-gentoo/build
* Found sources for kernel version:
* 4.1.12-gentoo
* Checking for suitable kernel configuration options...
 [ ok ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/media-video/v4l2loopback-0.8.0/work
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Preparing source in /var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0 ...
>>> Source prepared.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Configuring source in /var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0 ...
>>> Source configured.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
>>> Compiling source in /var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0 ...
ln: failed to create symbolic link ‘Module.symvers’: File exists
* Preparing v4l2loopback module
make -s -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' all
Building v4l2-loopback driver...
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c: In function ‘attr_store_maxopeners’:
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c:486:2: error: implicit declaration of function ‘strict_strtoul’ [-Werror=implicit-function-declaration]
if (strict_strtoul(buf, 0, &curr))
 ^
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c: In function ‘init_vdev’:
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c:2002:7: error: ‘struct video_device’ has no member named ‘debug’
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
 ^
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c:2002:17: error: ‘V4L2_DEBUG_IOCTL’ undeclared (first use in this function)
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
 ^
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c:2002:17: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.c:2002:36: error: ‘V4L2_DEBUG_IOCTL_ARG’ undeclared (first use in this function)
vdev->debug = V4L2_DEBUG_IOCTL | V4L2_DEBUG_IOCTL_ARG;
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.o' failed
make[2]: *** [/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0/v4l2loopback.o] Error 1
Makefile:1384: recipe for target '_module_/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0' failed
make[1]: *** [_module_/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0] Error 2
Makefile:42: recipe for target 'v4l2loopback.ko' failed
make: *** [v4l2loopback.ko] Error 2
* ERROR: media-video/v4l2loopback-0.8.0::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=media-video/v4l2loopback-0.8.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=media-video/v4l2loopback-0.8.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/media-video/v4l2loopback-0.8.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-video/v4l2loopback-0.8.0/temp/environment'.
* Working directory: '/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0'
* S: '/var/tmp/portage/media-video/v4l2loopback-0.8.0/work/v4l2loopback-0.8.0'
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory



  


2. Re: Emerge v4l2loopback

Luiz Santos
luiztux

(usa Gentoo)

Enviado em 24/01/2016 - 10:42h

O getcwd significa: get current work directory (man getcwd).

Me parece que você está sem as devidas permissões para os diretórios listados. Logue como root no terminal e mude para o diretório /. Aí tenta de novo.

Este pacote ainda está em teste (~)...

Dá uma olhada nos links, quem sabe te ajuda:

https://github.com/umlaeute/v4l2loopback/blob/master/README.md

https://forums.gentoo.org/viewtopic-t-812849-start-0.html

https://bugs.gentoo.org/show_bug.cgi?id=451978

http://gentoo-en.vfose.ru/wiki/Webcam

EDIT: https://bugs.gentoo.org/show_bug.cgi?id=568776
https://forums.gentoo.org/viewtopic-t-1025090-highlight-webcam.html
-----------------------------------''----------------------------------
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


3. Re: Emerge v4l2loopback

Leonardo Ventura
leoventura

(usa Debian)

Enviado em 24/01/2016 - 13:51h

Realmente mudar de diretorio funcionou, mas os outros erros continuaram e o pacote não foi instalado.
Teve uma coisa que não comentei, achei que poderia ser problemas de versão então resolvi tentar instalar pelo portage sem nem comentar isso. Quando eu instalo o software distribuido pelo link que postei la em cima, ele instala, acessa a CAM, mas a imagem fica verde e tremida.
Agora li o README em um dos links que voce mandou e la embaixo diz que deve funcionar muito bem em kernel >=3.0 o meu é o 4.1.12, sei que é acima do 3.0 mas parece meio distante será esse o problema?


4. Re: Emerge v4l2loopback

Luiz Santos
luiztux

(usa Gentoo)

Enviado em 24/01/2016 - 14:18h

leoventura escreveu:

Realmente mudar de diretorio funcionou, mas os outros erros continuaram e o pacote não foi instalado.
Teve uma coisa que não comentei, achei que poderia ser problemas de versão então resolvi tentar instalar pelo portage sem nem comentar isso. Quando eu instalo o software distribuido pelo link que postei la em cima, ele instala, acessa a CAM, mas a imagem fica verde e tremida.
Agora li o README em um dos links que voce mandou e la embaixo diz que deve funcionar muito bem em kernel >=3.0 o meu é o 4.1.12, sei que é acima do 3.0 mas parece meio distante será esse o problema?



Então, você seguiu a dica para mudar a resolução da webcam, listada na mesma página que você postou?

Em paralelo, verifique se o módulo foi identificado pelo Kernel. Neste caso eu penso que o teu Kernel atual tem mais chance de trabalhar melhor. Mas não devemos descartar que uma versão abaixo, de repente, trabalhe de forma mais satisfatória.




-----------------------------------''----------------------------------
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts