Autor Tópico: Webcam - 0c45:612f Microdia - Compilar  (Lida 1709 vezes)

Offline dockism

  • Usuário Ubuntu
  • *
  • Mensagens: 56
    • Ver perfil
Webcam - 0c45:612f Microdia - Compilar
« Online: 23 de Setembro de 2007, 21:40 »
Faz mais de 6 meses que procuro um driver para a minha webcam e não acho
o google não tem bastante coisa, e as que tem ng conseguiu tbm...

queria ver se alguem tem uma ideia de qual drive é mais similar a minha webcam para eu tentar
instalar ela.....

eu ganhei de presente da minha namo, que ela queria conversar cmgo via msn e me ver e até hoje nada, AUhaUHAUA, só se eu ir para windows, mas nem eras.....windows só no meu trampo
« Última modificação: 25 de Setembro de 2007, 19:57 por dockism »

Offline dockism

  • Usuário Ubuntu
  • *
  • Mensagens: 56
    • Ver perfil
Re: Webcam - 0c45:612f Microdia - Compilar
« Resposta #1 Online: 25 de Setembro de 2007, 20:03 »
   
Citar
daniel@casa:~$ lsusb
    Bus 005 Device 001: ID 0000:0000
    Bus 002 Device 003: ID 0c45:612f Microdia
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000
    Bus 003 Device 001: ID 0000:0000
    Bus 004 Device 001: ID 0000:0000
    daniel@casa:~$

baixei esse drive aqui spca5xx
só que tinha que fazer umas alterações para ele detectar minha webcam....
editei o arquivo spca5xx.c

Linha 789 add: {USB_DEVICE(0x0c45, 0x612f)}, /* Microdia.*/
Linha 5124 add: case 0x612f:

Só que os problemas começam aqui agora....
sudo su
make

e deu erro, o que pode ser? todos falaram que é só make e depois make install

Citar
root@casa:/home/daniel/Desktop/spca5xx-v4l1goodbye# sudo su
root@casa :/home/daniel/Desktop/spca5xx-v4l1goodbye# make
Building SPCA5XX driver for 2.5/2.6 kernel.
Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/daniel/Desktop/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.20-16-generic'
CC [M]  /home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: Arquivo ou diretório inexistente
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca50x_init_isoc':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1624: warning: assignment from incompatible pointer type
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_open':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2395: warning: implicit declaration of function 'video_devdata'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2395: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2400: warning: implicit declaration of function 'video_get_drvdata'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2400: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_close':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2490: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_do_ioctl':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2550: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_ioctl':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3094: warning: implicit declaration of function 'video_usercopy'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_read':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3113: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_mmap':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3212: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: At top level:
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: error: variable 'spca50x_template' has initializer but incomplete type
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: error: unknown field 'owner' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: error: unknown field 'name' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: error: unknown field 'type' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: error: unknown field 'hardware' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3269: error: unknown field 'fops' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3269: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3269: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3271: error: unknown field 'release' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3271: error: 'video_device_release' undeclared here (not in a function)
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3271: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3271: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3273: error: unknown field 'minor' specified in initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3273: warning: excess elements in struct initializer
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3273: warning: (near initialization for 'spca50x_template')
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'cd_to_spca50x':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: implicit declaration of function 'to_video_device'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: initialization makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3342: warning: return makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca50x_create_sysfs':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3451: warning: implicit declaration of function 'video_device_create_file'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function 'spca5xx_probe':
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5511: warning: implicit declaration of function 'video_device_alloc'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5511: warning: assignment makes pointer from integer without a cast
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: invalid application of 'sizeof' to incomplete type 'struct video_device'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5516: error: dereferencing pointer to incomplete type
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5518: warning: implicit declaration of function 'video_set_drvdata'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5523: warning: implicit declaration of function 'video_register_device'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5523: error: 'VFL_TYPE_GRABBER' undeclared (first use in this function)
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5523: error: (Each undeclared identifier is reported only once
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5523: error: for each function it appears in.)
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5552: error: dereferencing pointer to incomplete type
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function 'video_device_release'
/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5555: warning: implicit declaration of function 'video_unregister_device'
make[2]: ** [/home/daniel/Desktop/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Erro 1
make[1]: ** [_module_/home/daniel/Desktop/spca5xx-v4l1goodbye] Erro 2
make[1]: Saindo do diretório `/usr/src/linux- headers-2.6.20-16-generic'
make: ** [default] Erro 2
root@casa:/home/daniel/Desktop/spca5xx-v4l1goodbye#
« Última modificação: 25 de Setembro de 2007, 20:05 por dockism »