Problemi compilazione luvcview
Moderatore: Staff
Regole del forum
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
1) Citare in modo preciso il nome del pacchetto.
2) Specificare se discussione/suggerimento o richiesta d'aiuto.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Problemi compilazione luvcview
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?
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?
- Strarivari
- Linux 0.x

- Messaggi: 96
- Iscritto il: lun 5 dic 2005, 14:50
- Slackware: 12.2
- Kernel: 2.6.27.7-smp
- Desktop: KDE 3.5.10
- Strarivari
- Linux 0.x

- Messaggi: 96
- Iscritto il: lun 5 dic 2005, 14:50
- Slackware: 12.2
- Kernel: 2.6.27.7-smp
- Desktop: KDE 3.5.10
- Strarivari
- Linux 0.x

- Messaggi: 96
- Iscritto il: lun 5 dic 2005, 14:50
- Slackware: 12.2
- Kernel: 2.6.27.7-smp
- Desktop: KDE 3.5.10
credo di aver isolato il problema, se lancio : ossia disabilitando l'accelerazione hardware per sdl tutto funziona ...altrimenti mi si pianta il sistema
Codice: Seleziona tutto
lucview -w- Strarivari
- Linux 0.x

- Messaggi: 96
- Iscritto il: lun 5 dic 2005, 14:50
- Slackware: 12.2
- Kernel: 2.6.27.7-smp
- Desktop: KDE 3.5.10
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
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
