From: Brian G. <br...@ge...> - 2006-06-14 17:27:10
|
On Jun 13, 2006, at 9:53 AM, Yashan wrote: > and I met a problem when i installed player-2.0.2 > Making all in uvc > make[5]: Entering directory > `/home/ysun2/ps2/player-2.0.2/server/drivers/camera/uvc' > if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ - > DHAVE_CONFIG_H -I. > -I. -I../../../.. -I../../../../libplayercore > -I../../../../client_libs/libplayerc++ -Wall -I../../../.. -MT > cameraUVC.lo > -MD -MP -MF ".deps/cameraUVC.Tpo" -c -o cameraUVC.lo cameraUVC.cc; > then mv -f ".deps/cameraUVC.Tpo" ".deps/cameraUVC.Plo"; else rm -f > ".deps/cameraUVC.Tpo"; exit 1; fi > g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../libplayercore > -I../../../../client_libs/libplayerc++ -Wall -I../../../.. -MT > cameraUVC.lo -MD > -MP -MF .deps/cameraUVC.Tpo -c cameraUVC.cc -fPIC -DPIC -o .libs/ > cameraUVC.o > In file included from cameraUVC.cc:46: > v4l2uvc.h:54: field `cap' has incomplete type > v4l2uvc.h:55: field `fmt' has incomplete type > v4l2uvc.h:56: field `buf' has incomplete type > v4l2uvc.h:57: field `rb' has incomplete type > cameraUVC.cc: In constructor `CameraUVC::CameraUVC(ConfigFile*, int)': > cameraUVC.cc:102: `V4L2_PIX_FMT_MJPEG' undeclared (first use this > function) Looks like that driver should depend on and #include <linux/ videodev2.h>, rather than <linux/videodev.h>. I've made this change in CVS. Somebody let me know if that's not the right fix (I'm not very familiar with V4L or V4L2). A quick workaround is to disable the camerauvc driver, e.g.: $ ./configure --disable-camerauvc $ make brian. |