Pagina 1 di 1

Problemi compilazione luvcview

Inviato: dom 15 apr 2007, 10:42
da Vlainur
ragazzi ho provato a compilare luvcview (un vievew per webcam supportate dal modulo uvcview) la cui unica dipendenza dovrebbe essere sdl ..ma ogni volta che provo a compilare ecco il risultato:

gcc -DUSE_SDL -O2 -DLINUX -DVERSION=\"0.2.0\" -I-I/usr/include/SDL -D_REENTRANT -DUSE_SDL -O2 -DLINUX -DVERSION=\"0.2.0\" -I-I/usr/include/SDL -D_REENTRANT -c -o luvcview.o luvcview.c
In file included from uvcvideo.h:8,
from v4l2uvc.h:35,
from luvcview.c:46:
uvc_compat.h:102: error: field `min' has incomplete type
uvc_compat.h:103: error: field `max' has incomplete type
uvc_compat.h:104: error: field `step' has incomplete type
uvc_compat.h:116: error: field `discrete' has incomplete type
In file included from luvcview.c:46:
v4l2uvc.h:48: error: field `cap' has incomplete type
v4l2uvc.h:49: error: field `fmt' has incomplete type
v4l2uvc.h:50: error: field `buf' has incomplete type
v4l2uvc.h:51: error: field `rb' has incomplete type
luvcview.c: In function `main':
luvcview.c:221: error: `V4L2_PIX_FMT_MJPEG' undeclared (first use in this function)
luvcview.c:221: error: (Each undeclared identifier is reported only once
luvcview.c:221: error: for each function it appears in.)
luvcview.c:269: error: `V4L2_PIX_FMT_YUYV' undeclared (first use in this function)
luvcview.c: In function `eventThread':
luvcview.c:568: error: storage size of 'control' isn't known
luvcview.c:626: error: `V4L2_CID_BRIGHTNESS' undeclared (first use in this function)
luvcview.c:631: error: `V4L2_CID_CONTRAST' undeclared (first use in this function)
luvcview.c:636: error: `V4L2_CID_SATURATION' undeclared (first use in this function)
luvcview.c:640: error: `V4L2_CID_GAIN' undeclared (first use in this function)
luvcview.c:645: error: `V4L2_CID_PRIVATE_BASE' undeclared (first use in this function)
luvcview.c:649: error: `V4L2_CID_GAMMA' undeclared (first use in this function)
luvcview.c:677: error: `V4L2_CID_HUE' undeclared (first use in this function)
luvcview.c:811: error: `VIDIOC_S_CTRL' undeclared (first use in this function)
make: *** [luvcview.o] Error 1


Come potrei risolvere?

Inviato: dom 15 apr 2007, 11:11
da Strarivari
Ciao,

che versione dei kernel-headers hai installato?
ci vogliońo quelli del kernel 2.6 e non 2.4 a causa del v4l2

Inviato: dom 15 apr 2007, 11:18
da Vlainur
ovviamente ho gli headers del 2.4 :) ...provvedo subito a cambiarli
grazie

Inviato: dom 15 apr 2007, 12:45
da Vlainur
Compila alla grande ma appena lo lancio .....mi va in crash tutto il sistema

Inviato: dom 15 apr 2007, 12:58
da Strarivari
hai un kernel 2.4 ?
se negli headers (2.4) non c'è il supporto per il v4l2 il kernel non lo supporta (ovvio)

luvcview-20070107 funziona senza problemi su una current con kernel 2.6.20.6

Inviato: dom 15 apr 2007, 14:24
da Vlainur
ho un 2.6.20.6 compilato da me su una slackware 11...il kernel vede la webcam
ho provato con un altro programma fswebcam...non mi fa vedere lo stream della camera ma cattura solo delle jpeg e funziona bene....vediamo cosa puo essere.

Inviato: dom 15 apr 2007, 14:53
da Strarivari
hai dato un occhiata ai log per un indizio ?

hai l'ultima versione del driver ? che webcam è ?


(doamnde magari scontate, ma almeno aiuta a inquadrare meglio la situazione)

Inviato: dom 15 apr 2007, 15:02
da Vlainur
ho un dell m1210 con webcam integrata logitech (ho letto da qualche che è supportata)
per i driver sto usando la svn di ucview

Inviato: dom 15 apr 2007, 16:08
da Vlainur
credo di aver isolato il problema, se lancio :

Codice: Seleziona tutto

lucview -w
ossia disabilitando l'accelerazione hardware per sdl tutto funziona ...altrimenti mi si pianta il sistema

Inviato: dom 15 apr 2007, 16:15
da Strarivari
Bene :)

la webcam dovrebbe essere la Logitech Quickcam OEM Dell Notebook che trovi qua:
http://linux-uvc.berlios.de/

puoi contrallare con dmesg | grep -i uvc

se ti interessa