Erro na compilação de módulo para Webcam

Iniciado por Madrigal, 10 de Maio de 2010, 12:50

tópico anterior - próximo tópico

Madrigal


Tentei seguir o tutorial da página http://www.vivaolinux.com.br/dica/Configurando-sua-webcam-Creative-Live pra tentar fazer a minha webcam LG Lic-300 funcionar, mas não deu certo, poderiam verificar qual foi o meu erro?

junior@junior:~/Download$ sudo su
[sudo] password for junior:
root@junior:/home/junior/Download# tar -xzvf gspcav1-20071224.tar.gz
gspcav1-20071224/
gspcav1-20071224/decoder/
gspcav1-20071224/decoder/gspcadecoder.c
gspcav1-20071224/decoder/gspcadecoder.h
gspcav1-20071224/decoder/gspcadecoder-OSX.c
gspcav1-20071224/decoder/gspcadecoder-OSX.h
gspcav1-20071224/Makefile
gspcav1-20071224/Vimicro/
gspcav1-20071224/Vimicro/vc032x_sensor.h
gspcav1-20071224/Vimicro/zc3xx.h
gspcav1-20071224/Vimicro/cs2102.h
gspcav1-20071224/Vimicro/vc032x.h
gspcav1-20071224/Vimicro/pas106b.h
gspcav1-20071224/Vimicro/icm105a.h
gspcav1-20071224/Vimicro/hv7131b.h
gspcav1-20071224/Vimicro/hv7131c.h
gspcav1-20071224/Vimicro/pb0330.h
gspcav1-20071224/Vimicro/ov7630c.h
gspcav1-20071224/Vimicro/mc501cb.h
gspcav1-20071224/Vimicro/tas5130c_vf0250.h
gspcav1-20071224/Vimicro/ov7620.h
gspcav1-20071224/Vimicro/tas5130c.h
gspcav1-20071224/Vimicro/hdcs2020.h
gspcav1-20071224/Etoms/
gspcav1-20071224/Etoms/et61xx51.h
gspcav1-20071224/Sonix/
gspcav1-20071224/Sonix/sn9cxxx.h
gspcav1-20071224/Sonix/sonix.h
gspcav1-20071224/utils/
gspcav1-20071224/utils/spcagamma.h
gspcav1-20071224/utils/spcausb.h
gspcav1-20071224/utils/spcaCompat.h
gspcav1-20071224/Conexant/
gspcav1-20071224/Conexant/cx11646.h
gspcav1-20071224/Conexant/cxlib.h
gspcav1-20071224/Pixart/
gspcav1-20071224/Pixart/pac207-OSX.h
gspcav1-20071224/Pixart/pac7311.h
gspcav1-20071224/Pixart/pac207.h
gspcav1-20071224/changelog
gspcav1-20071224/license
gspcav1-20071224/gspca_core.c
gspcav1-20071224/Transvision/
gspcav1-20071224/Transvision/tv8532.h
gspcav1-20071224/Makefile.kld
gspcav1-20071224/gspca.h
gspcav1-20071224/Sunplus/
gspcav1-20071224/Sunplus/spca501.dat
gspcav1-20071224/Sunplus/spca505.dat
gspcav1-20071224/Sunplus/spca508.dat
gspcav1-20071224/Sunplus/spca561-OSX.h
gspcav1-20071224/Sunplus/spca506.h
gspcav1-20071224/Sunplus/spca561.h
gspcav1-20071224/Sunplus/spca501_init.h
gspcav1-20071224/Sunplus/spca508_init-OSX.h
gspcav1-20071224/Sunplus/spca508_init.h
gspcav1-20071224/Sunplus/spca501_init-OSX.h
gspcav1-20071224/Sunplus/spca505_init.h
gspcav1-20071224/Sunplus-jpeg/
gspcav1-20071224/Sunplus-jpeg/spca500.dat
gspcav1-20071224/Sunplus-jpeg/jpeg_qtables.h
gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h
gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.dat
gspcav1-20071224/Sunplus-jpeg/spca500_init.h
gspcav1-20071224/gspca_build
gspcav1-20071224/READ_AND_INSTALL
gspcav1-20071224/Mars-Semi/
gspcav1-20071224/Mars-Semi/mr97311.h
gspcav1-20071224/cutlog.py
root@junior:/home/junior/Download# cd gspcav1-20071224
root@junior:/home/junior/Download/gspcav1-20071224# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/junior/Download/gspcav1-20071224 CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.32-22-generic'
  CC [M]  /home/junior/Download/gspcav1-20071224/gspca_core.o
/home/junior/Download/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: Arquivo ou diretório não encontrado
In file included from /home/junior/Download/gspcav1-20071224/gspca_core.c:845:
/home/junior/Download/gspcav1-20071224/utils/spcausb.h: In function 'spca5xxRegRead':
/home/junior/Download/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function 'info'
/home/junior/Download/gspcav1-20071224/utils/spcausb.h: In function 'spca_set_interface':
/home/junior/Download/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from /home/junior/Download/gspcav1-20071224/gspca_core.c:853:
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
/home/junior/Download/gspcav1-20071224/gspca_core.c: In function 'spca5xx_ioctl':
/home/junior/Download/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function 'video_usercopy'
/home/junior/Download/gspcav1-20071224/gspca_core.c: At top level:
/home/junior/Download/gspcav1-20071224/gspca_core.c:2609: error: unknown field 'owner' specified in initializer
/home/junior/Download/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/junior/Download/gspcav1-20071224/gspca_core.c:2611: error: unknown field 'type' specified in initializer
/home/junior/Download/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/junior/Download/gspcav1-20071224/gspca_core.c: In function 'spca50x_create_sysfs':
/home/junior/Download/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function 'video_device_create_file'
/home/junior/Download/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function 'video_device_remove_file'
/home/junior/Download/gspcav1-20071224/gspca_core.c: In function 'spca5xx_probe':
/home/junior/Download/gspcav1-20071224/gspca_core.c:4301: error: incompatible types when assigning to type 'struct device' from type 'struct device *'
make[2]: ** [/home/junior/Download/gspcav1-20071224/gspca_core.o] Erro 1
make[1]: ** [_module_/home/junior/Download/gspcav1-20071224] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.32-22-generic'
make: ** [default] Erro 2
root@junior:/home/junior/Download/gspcav1-20071224# make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossível obter estado de `gspca.ko': Arquivo ou diretório não encontrado
make: ** [install] Erro 1
root@junior:/home/junior/Download/gspcav1-20071224#

platao

\\\\\\\\Apostilas Dicas e Guias do Ubuntu\\\\\\\\\> http://ubuntuforum-br.org/index.php/topic,79368.msg440997.html#msg440997

Madrigal

Esse GSPCA resolveria meu caso? Não entendi bem.

clcampos

Caro usuário é vetado pelas Regras de Utilização do Fórum tratar de um mesmo assunto em mais de um tópico.

Este tópico é duplicado e foi trancado.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!