PDA

Visualizza la versione completa : compilazione driver Logitech Quickcam Messenger


Francis87
25-08-2006, 22:05
ciao a tutti

ho una webcam Logitech Quickcam Messenger e volevo provare ad usarla sul mio portatile debian.
purtroppo, sembra che sia una delle webcam meno supportate ma ho trovato fortunatamente questo sito ( http://qce-ga.sourceforge.net/#unsupported ) che mi propone di compilare questo driver ( http://home.mag.cx/messenger/source/ ).

tutto contento che i pacchetti necessari siano presenti, e che la webcam usb venga rilevata, lancio la compilazione che per si ferma immediatamente:


rm -f *.o qcset input_read show *~ .\#* .*.cmd *.mod.c *.ko
rm -rf .tmp_versions
cd testquickcam ; make clean
make[1]: Entering directory `/home/francis/downloads/qc-usb-messenger-1.3/testquickcam'
rm -f testquickcam *~ pic.ppm pic.gif
make[1]: Leaving directory `/home/francis/downloads/qc-usb-messenger-1.3/testquickcam'
make -C "/lib/modules/2.6.8-cami02/build" SUBDIRS="/home/francis/downloads/qc-usb-messenger-1.3" modules V=1 USER_OPT=""
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
mkdir -p /home/francis/downloads/qc-usb-messenger-1.3/.tmp_versions
make -f scripts/Makefile.build obj=/home/francis/downloads/qc-usb-messenger-1.3
gcc -Wp,-MD,/home/francis/downloads/qc-usb-messenger-1.3/.qc-driver.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -O2 -fomit-frame-pointer -DNOKERNEL -DMODULE -DKBUILD_BASENAME=qc_driver -DKBUILD_MODNAME=quickcam -c -o /home/francis/downloads/qc-usb-messenger-1.3/.tmp_qc-driver.o /home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:91:2: warning: #warning "Little Endian system"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:382: error: syntax error before "__le16"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:383: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c: In function `qc_stv_getw':
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:385: error: `qc' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:385: error: (Each undeclared identifier is reported only once
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:385: error: for each function it appears in.)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:385: error: `reg' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:391: error: `val' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c: In function `qc_stream_add':
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1805: error: syntax error before "__be16"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1805: warning: no semicolon at end of struct or union
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1806: error: `__be16' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1801: warning: unused variable `sd'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1802: warning: unused variable `id'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1802: warning: unused variable `len'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1802: warning: unused variable `totaldata'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1803: warning: unused variable `error'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c: At top level:
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1810: error: syntax error before "while"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1812: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1812: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1812: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1812: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1815: warning: type defaults to `int' in declaration of `fhdr'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1815: error: conflicting types for `fhdr'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1808: error: previous declaration of `fhdr'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1815: error: `data' undeclared here (not in a function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1815: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1816: warning: type defaults to `int' in declaration of `id'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1816: error: invalid type argument of `->'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1816: error: braced-group within expression allowed only inside a function
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1816: error: syntax error before "__u16"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1817: warning: type defaults to `int' in declaration of `len'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1817: error: invalid type argument of `->'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1817: error: braced-group within expression allowed only inside a function
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1817: error: syntax error before "__u16"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1841: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1841: warning: type defaults to `int' in declaration of `printk'
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1889: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1889: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1890: warning: type defaults to `int' in declaration of `qc_frame_end'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1890: warning: parameter names (without types) in function declaration
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1890: error: conflicting types for `qc_frame_end'
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1893: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1893: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1893: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1893: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: error: syntax error before '&' token
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: type defaults to `int' in declaration of `do_gettimeofday'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1903: warning: function declaration isn't a prototype
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1908: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1908: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1908: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1908: error: syntax error before string constant
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1915: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1934: error: `dump' undeclared here (not in a function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1936: error: syntax error before "for"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: error: syntax error before '&' token
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: warning: type defaults to `int' in declaration of `do_gettimeofday'
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: error: syntax error before string constant
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: warning: type defaults to `int' in declaration of `printk'
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1939: warning: data definition has no type or storage class
[...]
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1944: warning: function declaration isn't a prototype
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1944: warning: data definition has no type or storage class
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c: In function `qc_usb_init':
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:3553: error: `__le16' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:3553: error: syntax error before "val"
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:3555: error: `val' undeclared (first use in this function)
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c: At top level:
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:198: warning: `frame_l' defined but not used
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1632: warning: `qc_frame_begin' defined but not used
/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.c:1652: warning: `qc_frame_add' defined but not used
make[2]: *** [/home/francis/downloads/qc-usb-messenger-1.3/qc-driver.o] Error 1
make[1]: *** [_module_/home/francis/downloads/qc-usb-messenger-1.3] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [quickcam.ko] Error 2
ls: quickcam.ko: No such file or directory
[!] Looks like the driver compilation failed.

un problema di compilatore?
risolvibile? :stordita:

francofait
26-08-2006, 00:54
un errore tuo la quickcamera di logiteck regolarmente supportata nativamente dal kernel , senza bisogno di ricompilare nulla.

Francis87
26-08-2006, 13:48
con che programma posso provare a vedere se effettivamente cos? :fagiano:

paolino_delta_t
26-08-2006, 16:52
puoi usare XAWTV, comunque per quel modello di webcam della logitech ti consiglio di scaricare e compilare il driver SPCA http://mxhaard.free.fr/download.html

Francis87
26-08-2006, 17:15
xawtv mi dice che non esiste /dev/video0 e che non ha un video grabber device disponibile..
come posso impostare la webcam usb su video0 o come grabber device?

paolino_delta_t
26-08-2006, 17:35
se dice cos perch il driver non in funzione.....

ti conviene fare:

- dai dal terminale il comando "sudo lsusb" in modo da capire che modello di cam hai (sono i due numeri dopo ID)
- vai sul sito http://mxhaard.free.fr/spca5xx.html e trovi la tua cam in base ai numeri di sopra
- scarica il driver corrispondente (o SPCA5XX o SPC5XX-LE)
- segui le istruzioni per la compilazione e l'installazione
- riavvia il sistema

a questo punto dovrebbe esistere /dev/video0

Francis87
27-08-2006, 10:02
:stordita: il primo numero (0x046d) c'.. ma il secondo non esiste in quella pagina (0x08f0)

cmq grazie mille per le semplici istruzioni :)

omeomerie
27-08-2006, 10:31
anche io ho la stessa cam e ho avuto gli stessi problemi.
alla fine, riuscito a compilare il modulo per il kernel, ho notato che sebbene inserito e presente nella lista dei moduli caricati non funziona.
A me funziona se disinserisco i il modulo quickcam e v4l e li rinserisco.
misteri.

Francis87
27-08-2006, 11:41
in quella lista c' una Logitech Quickcam Messenger, quindi ho scaricato il driver da quel sito (mi rimandava ad un pacchetto di debian unstable) e, forzata l'installazione (problema di versione di debhelper) perch non voglio un sistema unstable sul laptop ho finito tutto.

riavvio



e non c' /dev/video cmq :fagiano:

KaZaA
27-08-2006, 15:00
Il Nuovo Kernel 2.6.18 supporta la Logitech QuickCam Messenger...prova a compilarlo con il modulo della periferica e prova...

Loading