apro un nuovo post perchè non sono riuscito a trovare una soluzione con i vecchi
devo installare la webcam trust wb-1200p, uso il kernel 2.6.22-14-rt a bassa latenza (penso che il problema sia questo)
gspca-source da terminale non me lo trova e da synaptic mi chiede di inserire il CD di ubuntu 7.10 ma ho il masterizzatore in garanzia e quindi non lo posso inserire
la webcam con lsusb non viene vista
ho installato camorara
lsusb
Bus 002 Device 002: ID 093a:2468 Pixart Imaging, Inc. Easy Snap Snake Eye WebCam
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
lui@lui-desktop:~$ sudo apt–get install gspca-source
[sudo] password for lui:
sudo: apt–get: command not found
lui@lui-desktop:~$ modprobe videodev
lui@lui-desktop:~$ modprobe spca5xx
FATAL: Module spca5xx not found.
lui@lui-desktop:~$ wget http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.tar.gz
--13:36:29-- http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.tar.gz
=> `spca5xx-v4l1goodbye.tar.gz.1'
Risoluzione di mxhaard.free.fr in corso... 212.27.63.150
Connessione a mxhaard.free.fr|212.27.63.150:80... connesso.
HTTP richiesta inviata, aspetto la risposta... 200 OK
Lunghezza: 193,977 (189K) [application/x-gzip]
100%[====================================>] 193,977 35.11K/s ETA 00:00
13:36:35 (36.09 KB/s) - "spca5xx-v4l1goodbye.tar.gz.1" salvato [193977/193977]
lui@lui-desktop:~$ tar xvfz spca5xx-v4l1goodbye.tar.gz
spca5xx-v4l1goodbye/
[...]
spca5xx-v4l1goodbye/install
lui@lui-desktop:~$ cd spca5xx-v4l1goodbye/
lui@lui-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/lui/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-rt'
CC [M] /home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: Nessun file o directory
/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1623: warning: assignment from incompatible pointer type
/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
[...]
of function ‘video_device_release’
/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/lui/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/lui/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-rt'
make: *** [default] Error 2
lui@lui-desktop:~/spca5xx-v4l1goodbye$ make install
make: `install' is up to date.
Ultima modifica di Anonymous il martedì 4 marzo 2008, 18:40, modificato 1 volta in totale.
Occhio e croce (non avendo letto la guida che stai seguendo e non essendo un drago) si direbbe che cerchi di compilare un driver che ha bisogno dei sorgenti del kernel che non vengono trovati ...
Prova a scaricarli e a ripetere l'operazione :
sudo apt-get install linux-source-2.6.22
... se è quello il tuo kernel ... (per saperlo digita a terminale: uname -r)
Quando il saggio indica la luna, lo sciocco guarda il dito - L'esistenza dovrebbe essere sempre colma di bellezza ed emozioni, ma sarebbe ugualmente vuota, senza contenuti. - I miei racconti - Ubuntu user #27862
zio@ubuntu:~/spca5xx-v4l1goodbye$ sudo make
[sudo] password for zio:
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/zio/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.22-14-generic'
CC [M] /home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: Nessun file o directory
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_init_isoc’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:1623: warning: assignment from incompatible pointer type
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_open’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: implicit declaration of function ‘video_devdata’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2394: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: implicit declaration of function ‘video_get_drvdata’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2399: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_close’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2489: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_do_ioctl’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:2549: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_ioctl’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3093: warning: implicit declaration of function ‘video_usercopy’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_read’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3112: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_mmap’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3211: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: At top level:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3263: error: variable ‘spca50x_template’ has initializer but incomplete type
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: error: unknown field ‘owner’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3264: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: error: unknown field ‘name’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3265: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: error: unknown field ‘type’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3266: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: error: unknown field ‘hardware’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3267: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: error: unknown field ‘fops’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3268: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: unknown field ‘release’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: error: ‘video_device_release’ undeclared here (not in a function)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3270: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: error: unknown field ‘minor’ specified in initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: excess elements in struct initializer
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3272: warning: (near initialization for ‘spca50x_template’)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘cd_to_spca50x’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: implicit declaration of function ‘to_video_device’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3340: warning: initialization makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3341: warning: return makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca50x_create_sysfs’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:3450: warning: implicit declaration of function ‘video_device_create_file’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c: In function ‘spca5xx_probe’:
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: implicit declaration of function ‘video_device_alloc’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5509: warning: assignment makes pointer from integer without a cast
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5512: error: invalid application of ‘sizeof’ to incomplete type ‘struct video_device’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5514: error: dereferencing pointer to incomplete type
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5516: warning: implicit declaration of function ‘video_set_drvdata’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: warning: implicit declaration of function ‘video_register_device’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: (Each undeclared identifier is reported only once
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5521: error: for each function it appears in.)
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5550: error: dereferencing pointer to incomplete type
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5551: warning: implicit declaration of function ‘video_device_release’
/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:5553: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/home/zio/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/zio/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
make: *** [default] Error 2
zio@ubuntu:~/spca5xx-v4l1goodbye$ sudo make install
make: `install' is up to date.
Ultima modifica di Anonymous il martedì 4 marzo 2008, 18:41, modificato 1 volta in totale.
prima di tutto non serviva compilare nulla visto che i driver sono già integrati in un modulo del kernel
quindi controlliamo che il modulo sia caricato
lsmod | grep gspca
sudo modprobe gspca
ls /dev/video*
ps il comando
vlc v4l:// :v4l-vdev=”/dev/video” :v4l-adev=”/dev/dsp” :v4l-norm=3 :v4l-frequency=-1
1 non potrà mai dare una risposta positiva visto che è sbagliato in partenza
2 lo hai copiato da un blog che formatta le virgolette in maniera errata quindi bisogna riscriverlo a mano o copiarlo da qua sotto che è messo giusto
questo quello corretto
vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/dsp" :v4l-norm=3 :v4l-frequency=-1
pps io ho la stessa cam e ho solo dovuto attaccarla alla usb
infatti
vedi che il driver c'è, funziona e ti ha creato il device correttamente?
lancia il mio comando corretto, quello di vlc e vedrai che dovrebbe farti vedere la cam
aiutoooo
vorrei almeno utilizzarla con skype e amns, dell'uso in remoto posso farne pure a meno.
non voglio passare a windows quando devo far vedere le destrezze di mio figlio ai miei genitori lontani su amsn :'(
sudo apt-get install gspca-source
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Reading state information... Fatto
I seguenti pacchetti verranno inoltre installati:
debhelper dpkg-dev gettext html2text intltool-debian module-assistant patch
po-debconf
Pacchetti suggeriti:
dh-make debian-keyring cvs gettext-doc kernel-package build-essential
diff-doc
Pacchetti raccomandati:
libmail-sendmail-perl libcompress-zlib-perl
I seguenti pacchetti NUOVI (NEW) saranno installati:
debhelper dpkg-dev gettext gspca-source html2text intltool-debian
module-assistant patch po-debconf
0 aggiornati, 9 installati, 0 da rimuovere e 0 non aggiornati.
È necessario prendere 0B/2840kB di archivi.
Dopo l'estrazione, verranno occupati 10,3MB di spazio su disco.
Continuare [S/n]? s
Cambio disco: Inserire il disco chiamato
'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
nel dispositivo '/cdrom/' e premere invio
Ultima modifica di Anonymous il martedì 4 marzo 2008, 18:44, modificato 1 volta in totale.