The config log shows:
checking for XF86DGAQueryExtension in -lXxf86dga... no
checking for XF86VidModeSwitchMode in -lXxf86vm... yes
so HAVE_LIBXXF86DGA is undefined, so the samples/qtvidcap/kv4lsetup.cpp
code below fails to compile with undefined errors for bar, foo, ma, mi:
#ifdef HAVE_LIBXXF86DGA
int width,bar,foo,flags,ma,mi;
void* base = 0;
#endif
#ifdef HAVE_LIBXXF86VM
int vm_count;
XF86VidModeModeInfo** vm_modelines;
#endif
the following change allows it to compile on my system:
int bar,foo,ma,mi;
#ifdef HAVE_LIBXXF86DGA
int width,flags;
void* base = 0;
#endif
#ifdef HAVE_LIBXXF86VM
int vm_count;
XF86VidModeModeInfo** vm_modelines;
#endif
I attach the patch file for the above change.
kv4lsetup.cpp patch