This is as is and when I place #include "uvc_compat.h" after #include
"uvcvideo.h"
sepulot:/usr/src/UVC/trunk # make clean && make && make install
rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers version.h
rm -rf .tmp_versions
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.25-rc1'
CC [M] /usr/src/UVC/trunk/uvc_driver.o
CC [M] /usr/src/UVC/trunk/uvc_queue.o
CC [M] /usr/src/UVC/trunk/uvc_v4l2.o
CC [M] /usr/src/UVC/trunk/uvc_video.o
CC [M] /usr/src/UVC/trunk/uvc_ctrl.o
/usr/src/UVC/trunk/uvc_ctrl.c:232: error: ‘V4L2_CID_SHARPNESS’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:252: error:
‘V4L2_CID_BACKLIGHT_COMPENSATION’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:272: error:
‘V4L2_CID_POWER_LINE_FREQUENCY’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:284: error: ‘V4L2_CID_HUE_AUTO’ undeclared
here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:294: error: ‘V4L2_CID_EXPOSURE_AUTO’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:306: error:
‘V4L2_CID_EXPOSURE_AUTO_PRIORITY’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:316: error: ‘V4L2_CID_EXPOSURE_ABSOLUTE’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:336: error:
‘V4L2_CID_WHITE_BALANCE_TEMPERATURE’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:346: error: ‘V4L2_CID_FOCUS_ABSOLUTE’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:356: error: ‘V4L2_CID_FOCUS_AUTO’
undeclared here (not in a function)
make[2]: *** [/usr/src/UVC/trunk/uvc_ctrl.o] Error 1
make[1]: *** [_module_/usr/src/UVC/trunk] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-rc1'
make: *** [uvcvideo] Error 2
If I put #include "uvc_compat.h" at the top of the includes.
sepulot:/usr/src/UVC/trunk # make clean && make
rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers version.h
rm -rf .tmp_versions
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.25-rc1'
CC [M] /usr/src/UVC/trunk/uvc_driver.o
CC [M] /usr/src/UVC/trunk/uvc_queue.o
CC [M] /usr/src/UVC/trunk/uvc_v4l2.o
CC [M] /usr/src/UVC/trunk/uvc_video.o
CC [M] /usr/src/UVC/trunk/uvc_ctrl.o
In file included from include/asm/mutex.h:4,
from /usr/src/UVC/trunk/uvc_compat.h:255,
from /usr/src/UVC/trunk/uvc_ctrl.c:14:
include/asm/mutex_64.h:49: error: expected ‘)’ before ‘*’ token
include/asm/mutex_64.h:97: error: expected ‘)’ before ‘*’ token
/usr/src/UVC/trunk/uvc_ctrl.c:233: error: ‘V4L2_CID_SHARPNESS’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:253: error:
‘V4L2_CID_BACKLIGHT_COMPENSATION’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:273: error:
‘V4L2_CID_POWER_LINE_FREQUENCY’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:285: error: ‘V4L2_CID_HUE_AUTO’ undeclared
here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:295: error: ‘V4L2_CID_EXPOSURE_AUTO’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:307: error:
‘V4L2_CID_EXPOSURE_AUTO_PRIORITY’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:317: error: ‘V4L2_CID_EXPOSURE_ABSOLUTE’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:337: error:
‘V4L2_CID_WHITE_BALANCE_TEMPERATURE’ undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:347: error: ‘V4L2_CID_FOCUS_ABSOLUTE’
undeclared here (not in a function)
/usr/src/UVC/trunk/uvc_ctrl.c:357: error: ‘V4L2_CID_FOCUS_AUTO’
undeclared here (not in a function)
make[2]: *** [/usr/src/UVC/trunk/uvc_ctrl.o] Error 1
make[1]: *** [_module_/usr/src/UVC/trunk] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-rc1'
make: *** [uvcvideo] Error 2
Revision 177 is OK except as previously posted, the video freezes in
skype after a number of frames.
Regards
Sid.
--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel