I am a beginner at OpenCV and trying my best to get a simple application running on an embedded platform. I cross-compiled OpenCV 2.4.4 and built it WITH_GTK=ON, WIT
After doing the cmake statement Verify whether the output of cmake includes the following text: V4L/V4L2: Using libv4l.
If it is not there, then install v4l2ucp, v4l-utils and libv4l-dev from synaptic package manager. Then cmake and build again.
This worked for me but I was using OpenCV with python bindings on Ubuntu 12.04.