Building Kopete on my Gentoo system with enabled video support on kernel 3.9 fails with an error. The error logs show that this is caused by undeclared V4L2 constants (V4L2_CID_HCENTER and V4L2_CID_VCENTER). It seems these constants have been removed in kernel 3.7. Reproducible: Always Steps to Reproduce: 1. Build kopete with -DDISABLE_VIDEOSUPPORT=OFF on kernel 3.7 or higher Actual Results: Make fails with an error: /var/tmp/portage/kde-base/kopete-4.10.3/work/kopete-4.10.3/kopete/libkopete/avdevice/videodevice.cpp: In member function 'const char* Kopete::AV::VideoDevice::getUnifiedV4L2StdCtrlName(quint32)': /var/tmp/portage/kde-base/kopete-4.10.3/work/kopete-4.10.3/kopete/libkopete/avdevice/videodevice.cpp:3064:8: error: 'V4L2_CID_HCENTER' was not declared in this scope /var/tmp/portage/kde-base/kopete-4.10.3/work/kopete-4.10.3/kopete/libkopete/avdevice/videodevice.cpp:3065:8: error: 'V4L2_CID_VCENTER' was not declared in this scope Expected Results: Should build without erros.
Created attachment 79750 [details] Patch to make deprecated V4L2 controls in Kopete optional Here's a patch that checks for the constants using an #ifdef before using them.
SVN commit 1353735 by palimaka: Fix build with V4L and recent kernels. REVIEW: 7072 M +4 -0 videodevice.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1353735
SVN commit 1353736 by palimaka: Fix build with V4L and recent kernels. REVIEW: 7072 M +4 -0 videodevice.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1353736