Problemi compilazione luvcview
Inviato: dom 15 apr 2007, 10:42
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?