[Video] Installazione driver webcam

Riconoscimento, installazione e configurazione delle periferiche.
Kran
Prode Principiante
Messaggi: 9
Iscrizione: mercoledì 9 dicembre 2009, 18:28

[Video] Installazione driver webcam

Messaggio da Kran »

salve!

Sto cercando di installare su ubuntu 11.04 una web cam della emtec del voip kit starter. Quando vado a compilare il driver che ho trovato mi esce il seguente errore:

Codice: Seleziona tutto

kran@kran-Inspiron-580:/microdia$ sudo make
**************************************************************************
* Building Video4Linux2 driver v1.48 for SN9C1xx PC Camera Controllers...*
* Official Linux 2.6.19 is the minimum version for this driver.          *
* Read the documentation "sn9c102.txt" for more informations.            *
* Type "make help" for a list of available targets.                      *
**************************************************************************

make -C /lib/modules/`uname -r`/build M=/microdia modules
make[1]: ingresso nella directory "/usr/src/linux-headers-2.6.38-11-generic"
  CC [M]  /microdia/sn9c102_core.o
/microdia/sn9c102_core.c:1033:40: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c:1033:40: warning: its scope is only this definition or declaration, which is probably not what you want
/microdia/sn9c102_core.c: In function ‘sn9c102_show_reg’:
/microdia/sn9c102_core.c:1041:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1041:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1041:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1041:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1057:26: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_reg’:
/microdia/sn9c102_core.c:1066:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1066:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1066:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1066:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1090:40: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_show_val’:
/microdia/sn9c102_core.c:1099:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1099:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1099:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1099:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1122:26: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_val’:
/microdia/sn9c102_core.c:1132:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1132:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1132:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1132:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1161:44: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_show_i2c_reg’:
/microdia/sn9c102_core.c:1169:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1169:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1169:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1169:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1187:30: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_i2c_reg’:
/microdia/sn9c102_core.c:1196:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1196:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1196:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1196:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1220:44: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_show_i2c_val’:
/microdia/sn9c102_core.c:1229:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1229:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1229:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1229:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1257:30: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_i2c_val’:
/microdia/sn9c102_core.c:1267:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1267:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1267:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1267:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1302:28: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_green’:
/microdia/sn9c102_core.c:1313:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1313:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1313:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1313:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1333:3: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/microdia/sn9c102_core.c:1057:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c:1334:4: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/microdia/sn9c102_core.c:1122:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c:1341:3: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/microdia/sn9c102_core.c:1057:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c:1342:4: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/microdia/sn9c102_core.c:1122:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1351:27: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_blue’:
/microdia/sn9c102_core.c:1361:2: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/microdia/sn9c102_core.c:1057:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c:1362:3: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/microdia/sn9c102_core.c:1122:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1369:26: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_store_red’:
/microdia/sn9c102_core.c:1379:2: warning: passing argument 1 of ‘sn9c102_store_reg’ from incompatible pointer type
/microdia/sn9c102_core.c:1057:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c:1380:3: warning: passing argument 1 of ‘sn9c102_store_val’ from incompatible pointer type
/microdia/sn9c102_core.c:1122:1: note: expected ‘struct class_device *’ but argument is of type ‘struct class_device *’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1386:49: warning: ‘struct class_device’ declared inside parameter list
/microdia/sn9c102_core.c: In function ‘sn9c102_show_frame_header’:
/microdia/sn9c102_core.c:1391:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1391:26: warning: type defaults to ‘int’ in declaration of ‘__mptr’
/microdia/sn9c102_core.c:1391:26: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:1391:26: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1405:31: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1407:31: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1409:35: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1411:35: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1413:33: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1414:32: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1415:31: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c:1416:40: error: expected ‘)’ before ‘(’ token
/microdia/sn9c102_core.c: In function ‘sn9c102_create_sysfs’:
/microdia/sn9c102_core.c:1422:47: error: ‘struct video_device’ has no member named ‘class_dev’
/microdia/sn9c102_core.c:1425:2: error: implicit declaration of function ‘class_device_create_file’
/microdia/sn9c102_core.c:1425:49: error: ‘class_device_attr_reg’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1425:49: note: each undeclared identifier is reported only once for each function it appears in
/microdia/sn9c102_core.c:1427:49: error: ‘class_device_attr_val’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1430:39: error: ‘class_device_attr_frame_header’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1435:38: error: ‘class_device_attr_i2c_reg’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1438:38: error: ‘class_device_attr_i2c_val’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1444:40: error: ‘class_device_attr_green’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1448:40: error: ‘class_device_attr_blue’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1451:40: error: ‘class_device_attr_red’ undeclared (first use in this function)
/microdia/sn9c102_core.c:1458:2: error: implicit declaration of function ‘class_device_remove_file’
/microdia/sn9c102_core.c: In function ‘sn9c102_vidioc_querycap’:
/microdia/sn9c102_core.c:2135:41: error: ‘struct device’ has no member named ‘bus_id’
/microdia/sn9c102_core.c: In function ‘sn9c102_ioctl’:
/microdia/sn9c102_core.c:3191:2: error: implicit declaration of function ‘v4l_print_ioctl’
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:3206:2: error: unknown field ‘ioctl’ specified in initializer
/microdia/sn9c102_core.c:3206:2: warning: initialization from incompatible pointer type
/microdia/sn9c102_core.c:3207:18: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
/microdia/sn9c102_core.c: In function ‘sn9c102_usb_probe’:
/microdia/sn9c102_core.c:3300:13: error: ‘struct video_device’ has no member named ‘owner’
/microdia/sn9c102_core.c:3301:13: error: ‘struct video_device’ has no member named ‘type’
/microdia/sn9c102_core.c:3301:22: error: ‘VID_TYPE_CAPTURE’ undeclared (first use in this function)
/microdia/sn9c102_core.c:3301:41: error: ‘VID_TYPE_SCALES’ undeclared (first use in this function)
/microdia/sn9c102_core.c:3302:13: error: ‘struct video_device’ has no member named ‘hardware’
/microdia/sn9c102_core.c:3303:20: warning: assignment from incompatible pointer type
/microdia/sn9c102_core.c: At top level:
/microdia/sn9c102_core.c:1033:16: warning: ‘sn9c102_show_reg’ defined but not used
/microdia/sn9c102_core.c:1090:16: warning: ‘sn9c102_show_val’ defined but not used
/microdia/sn9c102_core.c:1161:16: warning: ‘sn9c102_show_i2c_reg’ defined but not used
/microdia/sn9c102_core.c:1187:1: warning: ‘sn9c102_store_i2c_reg’ defined but not used
/microdia/sn9c102_core.c:1220:16: warning: ‘sn9c102_show_i2c_val’ defined but not used
/microdia/sn9c102_core.c:1257:1: warning: ‘sn9c102_store_i2c_val’ defined but not used
/microdia/sn9c102_core.c:1302:1: warning: ‘sn9c102_store_green’ defined but not used
/microdia/sn9c102_core.c:1351:1: warning: ‘sn9c102_store_blue’ defined but not used
/microdia/sn9c102_core.c:1369:1: warning: ‘sn9c102_store_red’ defined but not used
/microdia/sn9c102_core.c:1386:16: warning: ‘sn9c102_show_frame_header’ defined but not used
make[2]: *** [/microdia/sn9c102_core.o] Errore 1
make[1]: *** [_module_/microdia] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-2.6.38-11-generic"
make: *** [modules] Errore 2
Stavo usando questa guida http://wiki.ubuntu-it.org/Hardware/Webcam/Microdia per installarlo ma con driver diversi che ho trovato per la mia webcam, se servono posto anche quelli.
Grazie per l'aiuto!
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Video] Installazione driver webcam

Messaggio da robytrevi »

Ciao.
Sicuro che non funzioni automaticamente?
Installa cheese e provala.
Inoltre posta

Codice: Seleziona tutto

lsusb
così vediamo il modello esatto.
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
Kran
Prode Principiante
Messaggi: 9
Iscrizione: mercoledì 9 dicembre 2009, 18:28

Re: [Video] Installazione driver webcam

Messaggio da Kran »

su cheese funziona! allora il problema è skype che non la legge... provo a cercare soluzioni nel caso posto qui!
Avatar utente
robytrevi
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 10901
Iscrizione: lunedì 10 marzo 2008, 14:12
Desktop: mate
Distribuzione: Xenial 32 bit
Località: Modena(provincia)

Re: [Video] Installazione driver webcam

Messaggio da robytrevi »

Chiudi skype, apri un terminale e dai

Codice: Seleziona tutto

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
oppure

Codice: Seleziona tutto

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
e vedi se così va.
Se va basta modificare il comando di avvio di skype.
Ubuntu 16.04 (Mate), Arch (Gnome-shell), Fedora21(gnome-shell), Debian Jessie(openbox), Windows 7 ; Dell Inspiron 1501; AMD Turion 64x2; ATI XPress 1100 (vista come Radeon Xpress 200M)
Quando si richiede supporto postare il comando "lsb_release -ds && echo $DESKTOP_SESSION && uname -m"
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti