Webcam a forma di piede

Riconoscimento, installazione e configurazione delle periferiche.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Webcam a forma di piede

Messaggio da Jok3rplay »

ciao a tutti, è da tempo che uso ubuntu e nn ho mai avuto problemi a cui nn ho trovato una soluzione....
ho comprato una webcam a forma di piede, la Key Teck WCAM-630, se dò lsusb da terminale la webcam viene riconosciuta così: Bus 003 Device 002: ID 0c45:613c Microdia
ho provato svariate guide ma nn ho risolto il problema, la webcam proprio nn vuole andare :'(
provando ad installare easyspca(per chi nn lo conoscesse, è un programma che riconosce e installa in automatico i driver giusti per la webcam) e quest'ultimo prova ad installare gli spca5xx ma ottiene degli errori... >:(
a questo punto vado sul sito ufficiale degli spcs5xx e scarico questo file:-------> http://mxhaard.free.fr/spca50x/Download ... bye.tar.gz
Estraggo e provo ad installarli:

Codice: Seleziona tutto

jok3r@jok3r:~$ cd '/home/jok3r/spca5xx-v4l1goodbye' 
jok3r@jok3r:~/spca5xx-v4l1goodbye$ sudo make
[sudo] password for jok3r:
   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/jok3r/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1623: warning: assignment from incompatible pointer type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: implicit declaration of function ‘video_devdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: implicit declaration of function ‘video_get_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2489: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2549: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3093: warning: implicit declaration of function ‘video_usercopy’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3112: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3211: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: At top level:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3263: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: error: unknown field ‘owner’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: error: unknown field ‘name’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: error: unknown field ‘type’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: error: unknown field ‘hardware’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: error: unknown field ‘fops’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: unknown field ‘release’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: ‘video_device_release’ undeclared here (not in a function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: error: unknown field ‘minor’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: implicit declaration of function ‘to_video_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: return makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3450: warning: implicit declaration of function ‘video_device_create_file’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: implicit declaration of function ‘video_device_alloc’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: assignment makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function ‘video_set_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: warning: implicit declaration of function ‘video_register_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: (Each undeclared identifier is reported only once
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: for each function it appears in.)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5550: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5551: warning: implicit declaration of function ‘video_device_release’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/jok3r/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
jok3r@jok3r:~/spca5xx-v4l1goodbye$ 
dopo questa sfilza di errori nn sò più che fare e mi affido nelle vostre sapienti mani  :-[
grazie mille a chiunque tenti di aiutarmi  :(
Ultima modifica di Jok3rplay il venerdì 21 marzo 2008, 12:44, modificato 1 volta in totale.
Jakuwladi
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 284
Iscrizione: giovedì 1 novembre 2007, 22:03

Re: Webcam a forma di piede

Messaggio da Jakuwladi »

Mi pare che si possano utilizzare anche i driver xp come ultima spiaggia per periferiche semplici come webcam o chiavette usb wireless.

Tra i tutorial di ubuntu cerca Ndiswrapper.

Io l'ho usato per installare la penna usb wireless della mentor e ha funzionato perfettamente.
Avatar utente
giacomo.
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1262
Iscrizione: venerdì 28 dicembre 2007, 12:06
Contatti:

Re: Webcam a forma di piede

Messaggio da giacomo. »

(nono) no, ndiswrapper installa solo i driver per le schede di rete
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

infatti ndiswrapper io lo uso per la mia kiavetta wireless usb, nn credo si possa installare la webcam >:(
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

Quelli che hai provato ad installare sono relativi ad un vecchio kernel, prova con quelli nuovi http://mxhaard.free.fr/spca50x/Download ... 224.tar.gz e assicurati di avere tutte le dipendenze installate.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

ok ora provo ;)
Avatar utente
LukeNukem71
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 511
Iscrizione: martedì 2 ottobre 2007, 16:55
Località: Parma

Re: Webcam a forma di piede

Messaggio da LukeNukem71 »

Se il chipset è della serie SN9CXXX (classico delle Microdia), l'unico driver per farla funzionare lo trovi qui:

http://www.linux-projects.org/modules/mydownloads/viewcat.php?cid=7

peccato sia in versione Trial  :-\
Vogliono una donazione paypal per farti avere la versione definitiva. L'ho provato e funziona, non è eccellente però.  :-[
HP 510 - Dual Boot -> WinXP Pro SP3 + Ubuntu 12.10
ƐeePC 701 - Ubuntu 10.04 {/ su SSD [ext4] /home su SD [ext4]}
ƐeePC 1005ha-h - Ubuntu 10.04 + Ɛee-control
Ubuntu User #22371
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

dj_def ha scritto: Quelli che hai provato ad installare sono relativi ad un vecchio kernel, prova con quelli nuovi http://mxhaard.free.fr/spca50x/Download ... 224.tar.gz e assicurati di avere tutte le dipendenze installate.
ho seguito questa guida ma nn va  :'(
LukeNukem71 ha scritto: Se il chipset è della serie SN9CXXX (classico delle Microdia), l'unico driver per farla funzionare lo trovi qui:

http://www.linux-projects.org/modules/mydownloads/viewcat.php?cid=7

peccato sia in versione Trial  :-\
Vogliono una donazione paypal per farti avere la versione definitiva. L'ho provato e funziona, non è eccellente però.  :-[
gia l'ho provato, ho skarikato il pakketto .deb dal sito ke mi hai consigliato, ho riavviato e lui me l'ha abilitato nei driver restricted però la webcam nn viene riconosciuta ugualmente  >:(

EDIT
nn è ke per qst driver trial c'è qualke dipendenza o qualke altra procedura da fare prima di abilitarli? :-[

RIEDIT
ebbene si, stò ankora sbattendo la testa per questa maledetta webcam, ho reinstallato la versione trial dei sn9cxxx, dai restricted me lo dà no enable, se provo ad abilitarlo e a riavviare nn si abilita, se do lsmod da terminale mi esce questo:

Codice: Seleziona tutto

jok3r@jok3r:~$ lsmod
Module                  Size  Used by
snd_rtctimer            4384  1 
binfmt_misc            12936  1 
rfcomm                 42136  2 
l2cap                  26240  11 rfcomm
bluetooth              57060  4 rfcomm,l2cap
nfsd                  220912  13 
exportfs                7040  1 nfsd
lockd                  67592  2 nfsd
sunrpc                172412  8 nfsd,lockd
apm                    22616  2 
ppdev                  10244  0 
speedstep_lib           6404  0 
cpufreq_conservative     8072  0 
cpufreq_userspace       5280  0 
cpufreq_powersave       2688  0 
cpufreq_ondemand        9612  0 
cpufreq_stats           7232  0 
freq_table              5792  2 cpufreq_ondemand,cpufreq_stats
ipv6                  273892  8 
af_packet              24840  2 
ndiswrapper           185240  0 
lp                     12580  0 
snd_cmipci             37024  1 
gameport               16776  1 snd_cmipci
snd_pcm_oss            44672  0 
snd_mixer_oss          17664  1 snd_pcm_oss
snd_pcm                80388  2 snd_cmipci,snd_pcm_oss
snd_page_alloc         11400  1 snd_pcm
snd_opl3_lib           11520  1 snd_cmipci
snd_hwdep              10244  1 snd_opl3_lib
snd_mpu401_uart         9600  1 snd_cmipci
snd_seq_dummy           4740  0 
joydev                 11328  0 
snd_seq_oss            33152  0 
xpad                    9988  0 
gspca                 680528  0 
snd_seq_midi            9600  0 
usbhid                 29536  0 
hid                    28928  1 usbhid
snd_rawmidi            25728  2 snd_mpu401_uart,snd_seq_midi
snd_seq_midi_event      8448  2 snd_seq_oss,snd_seq_midi
snd_seq                53232  7 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              24324  4 snd_rtctimer,snd_pcm,snd_opl3_lib,snd_seq
snd_seq_device          9228  6 snd_opl3_lib,snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
videodev               29312  1 gspca
v4l2_common            18432  1 videodev
v4l1_compat            15364  1 videodev
usblp                  15104  0 
pcspkr                  4224  0 
snd                    54660  15 snd_cmipci,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_opl3_lib,snd_hwdep,snd_mpu401_uart,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
nvidia               7822336  34 
i2c_core               26112  1 nvidia
soundcore               8800  1 snd
intel_agp              25620  1 
agpgart                35016  2 nvidia,intel_agp
serio_raw               8068  0 
parport_pc             37412  1 
psmouse                39952  0 
iTCO_wdt               11940  0 
iTCO_vendor_support     4868  1 iTCO_wdt
parport                37448  3 ppdev,lp,parport_pc
shpchp                 34580  0 
pci_hotplug            32704  1 shpchp
evdev                  11136  1 
ext3                  133896  1 
jbd                    60456  1 ext3
mbcache                 9732  1 ext3
sg                     36764  0 
sr_mod                 17828  0 
cdrom                  37536  1 sr_mod
sd_mod                 30336  3 
ata_generic             8452  0 
floppy                 60004  0 
ehci_hcd               36492  0 
uhci_hcd               26640  0 
usbcore               138632  8 ndiswrapper,xpad,gspca,usbhid,usblp,ehci_hcd,uhci_hcd
ata_piix               17540  2 
libata                125168  2 ata_generic,ata_piix
scsi_mod              147084  4 sg,sr_mod,sd_mod,libata
fuse                   47124  1 
apparmor               40728  0 
commoncap               8320  1 apparmor
il modulo sn9cxxx nn è carikato e se dò modprobe sn9cxxx il terminale mi restituisce:

Codice: Seleziona tutto

jok3r@jok3r:~$ sudo modprobe sn9cxxx
[sudo] password for jok3r:
FATAL: Error inserting sn9cxxx (/lib/modules/2.6.22-14-generic/kernel/drivers/media/video/sn9c102/sn9cxxx.ko): Invalid argument
AIUTOOOOOOOO >:(
Ultima modifica di Jok3rplay il venerdì 21 marzo 2008, 16:20, modificato 1 volta in totale.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

UP  :-[
vi prego aiutatemi, non sò più che fare :'(
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

PREMESSA: quando seguite le guide o cercate di capire quello che fate o lasciatele perdere

Se mi ricordo bene quel driver non si installa affatto come dice la guida, c'è un script che fa tutto lui.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

ok ragazzi, sono ritornato dopo aver risolto un "piccolo"(si fa per dire) problemino con compiz, guardando la lista di compatibilità dei driver spca5xx l'ID della mia cam c'è, il supporto è indicato a 5 stelle e i driver da utilizzare sono i spca5xx/LE, nel primo post ho già spiegato gli errori che mi restituisce il terminale:
Jok3rplay ha scritto:

Codice: Seleziona tutto

jok3r@jok3r:~$ cd '/home/jok3r/spca5xx-v4l1goodbye' 
jok3r@jok3r:~/spca5xx-v4l1goodbye$ sudo make
[sudo] password for jok3r:
   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/jok3r/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1623: warning: assignment from incompatible pointer type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: implicit declaration of function ‘video_devdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: implicit declaration of function ‘video_get_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2489: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2549: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3093: warning: implicit declaration of function ‘video_usercopy’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3112: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3211: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: At top level:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3263: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: error: unknown field ‘owner’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: error: unknown field ‘name’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: error: unknown field ‘type’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: error: unknown field ‘hardware’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: error: unknown field ‘fops’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: unknown field ‘release’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: ‘video_device_release’ undeclared here (not in a function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: error: unknown field ‘minor’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: implicit declaration of function ‘to_video_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: return makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3450: warning: implicit declaration of function ‘video_device_create_file’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: implicit declaration of function ‘video_device_alloc’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: assignment makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function ‘video_set_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: warning: implicit declaration of function ‘video_register_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: (Each undeclared identifier is reported only once
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: for each function it appears in.)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5550: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5551: warning: implicit declaration of function ‘video_device_release’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/jok3r/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
jok3r@jok3r:~/spca5xx-v4l1goodbye$ 
Scusate se vi rompo, ma ho ankora bisogno del vostro aiuto :'(
dj_def ha scritto: PREMESSA: quando seguite le guide o cercate di capire quello che fate o lasciatele perdere

Se mi ricordo bene quel driver non si installa affatto come dice la guida, c'è un script che fa tutto lui.
mi dai la parte della guida che menziona questo fantomatico script? :P
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

lol, mica la guida lo menziona, io odio le guide :) Comunque mi riferivo alla versione nuova, non a quella vecchia... tu perché vuoi usare quella vecchia?
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

dj_def ha scritto: lol, mica la guida lo menziona, io odio le guide :) Comunque mi riferivo alla versione nuova, non a quella vecchia... tu perché vuoi usare quella vecchia?
XD
se provo ad installare i driver nuovi, cioè i gspcav1, la webcam nn funziona.
nella lista compatibilità degli spca5xx l'ID della mia webcam c'è, per questo mi ostino a voler installare quelli :-[
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

beh per quelli nuovi non capisco come hai fatto ad installarli senza lo script di installazione  (rotfl)

si chiama gspca_build e una volta eseguito toglie i vecchi e mette i nuovi tutto in automatico...
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

(rotfl) ok ora mi metto al lavoro
grazie mille ;)

EDIT

ho installato i driver con lo script ma la cam nn viene rikonosciuta :'(
secondo me c'è un modo per installare gli spca5xx, infatti nella lista compatibilità ci sono alcune webcam in cui i driver consigliati sono i gspca, ma per la mia webcam i consigliati sono i spca5xx ???
Ultima modifica di Jok3rplay il sabato 22 marzo 2008, 21:18, modificato 1 volta in totale.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

UP >:(
chissà se riuscirò mai a vedermi in questa webcam :-[
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

Sia su gspca che su spca5xx c'è un bel file readme che spiega l'installazione (senza che vai a cercare guide) e così è per qualsiasi programma open source! :)
Io ci ho appena dato una letta veloce e per l'installazione dovrebbero essere sufficienti:

Codice: Seleziona tutto

sudo -i
modprobe -r spca5xx
modprobe -r gspca
make
make install
modprobe spca5xx
exit
Ora se tutto è andato a buon fine dovrebbe funzionare, se qualcosa va storto di pure.
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

allora, innanzitutto buona pasqua a tutti ;D
allora, ho seguito le tue indicazioni, questo è il resoconto della mia sessione di terminale:

Codice: Seleziona tutto

jok3r@jok3r:~$ sudo -i
[sudo] password for jok3r:
root@jok3r:~# modprobe -r spca5xx
FATAL: Module spca5xx not found.
root@jok3r:~# modprobe -r gspca
root@jok3r:~# cd '/home/jok3r/spca5xx-v4l1goodbye' 
root@jok3r:/home/jok3r/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/jok3r/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
  CC [M]  /home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: Nessun file o directory
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1623: warning: assignment from incompatible pointer type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: implicit declaration of function ‘video_devdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: implicit declaration of function ‘video_get_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2489: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2549: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3093: warning: implicit declaration of function ‘video_usercopy’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3112: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3211: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: At top level:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3263: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: error: unknown field ‘owner’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: error: unknown field ‘name’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: error: unknown field ‘type’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: error: unknown field ‘hardware’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: error: unknown field ‘fops’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: unknown field ‘release’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: ‘video_device_release’ undeclared here (not in a function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: error: unknown field ‘minor’ specified in initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: excess elements in struct initializer
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: (near initialization for ‘spca50x_template’)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: implicit declaration of function ‘to_video_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: initialization makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: return makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3450: warning: implicit declaration of function ‘video_device_create_file’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: implicit declaration of function ‘video_device_alloc’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: assignment makes pointer from integer without a cast
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’ 
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function ‘video_set_drvdata’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: warning: implicit declaration of function ‘video_register_device’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: (Each undeclared identifier is reported only once
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: for each function it appears in.)
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5550: error: dereferencing pointer to incomplete type
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5551: warning: implicit declaration of function ‘video_device_release’
/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/jok3r/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/jok3r/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
root@jok3r:/home/jok3r/spca5xx-v4l1goodbye# 
Come vedi al comando make mi da degli errori :'(
come è possibile? :-[
dj_def
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3212
Iscrizione: martedì 7 novembre 2006, 3:04

Re: Webcam a forma di piede

Messaggio da dj_def »

è possibile se non hai installato le dipendenze e i sorgenti del kernel... tu li hai installati?
Avatar utente
Jok3rplay
Prode Principiante
Messaggi: 23
Iscrizione: giovedì 20 marzo 2008, 21:04
Località: Scafati Salerno
Contatti:

Re: Webcam a forma di piede

Messaggio da Jok3rplay »

i sorgenti del kernel li ho installato, per le dipendenze, nn saprei, i pacchetti per la compilazione li ho, ma quali sono le altre dipendenze da soddisfare? :-\
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot] e 5 ospiti