View Single Post
nicolai's Avatar
Posts: 1,637 | Thanked: 4,404 times | Joined on Apr 2009 @ Germany
#464
Originally Posted by MohammadAG View Post
I've been unable to build the latest version from git
Code:
camera-interface.c: In function 'camera_interface_toggle_light':
camera-interface.c:1116: error: 'V4L2_CID_TORCH_INTENSITY' undeclared (first use in this function)
camera-interface.c:1116: error: (Each undeclared identifier is reported only once
camera-interface.c:1116: error: for each function it appears in.)
camera-interface.c:1117: error: expected expression before 'struct'
camera-interface.c:1119: error: expected expression before 'struct'
camera-interface.c: In function 'camera_interface_toggle_privacy_light':
camera-interface.c:1130: error: 'V4L2_CID_INDICATOR_INTENSITY' undeclared (first use in this function)
camera-interface.c:1131: error: expected expression before 'struct'
camera-interface.c:1133: error: expected expression before 'struct'
camera-interface.c: In function 'camera_interface_get_focus':
camera-interface.c:1144: error: 'V4L2_CID_FOCUS_ABSOLUTE' undeclared (first use in this function)
camera-interface.c:1145: error: expected expression before 'struct'
camera-interface.c: In function 'camera_interface_increase_focus':
camera-interface.c:1159: error: 'V4L2_CID_FOCUS_ABSOLUTE' undeclared (first use in this function)
camera-interface.c:1160: error: expected expression before 'struct'
camera-interface.c:1162: error: expected expression before 'struct'
camera-interface.c: In function 'camera_interface_decrease_focus':
camera-interface.c:1173: error: 'V4L2_CID_FOCUS_ABSOLUTE' undeclared (first use in this function)
camera-interface.c:1174: error: expected expression before 'struct'
camera-interface.c:1176: error: expected expression before 'struct'
make[1]: *** [camera-interface.o] Error 1
Tried guessing which packages I need, but no luck, mind helping out nicolai?
Those V4L2_CID_XX are defined in /usr/include/linux/videodev2.h
which should be in package linux-kernel-headers.

Nicolai
 

The Following User Says Thank You to nicolai For This Useful Post: