[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

videodev2.h vs asm/types.h



[CC me please]

Hi all,

  Recently one of my package started failing. Compilation is done
based on system inspection. In this case when videodev2.h is found, a
video module is being compiled. This approach started failing
recently:

https://buildd.debian.org/status/fetch.php?pkg=vxl&arch=kfreebsd-i386&ver=1.14.0-12&stamp=1323348804

[ 45%] Building CXX object core/vidl/CMakeFiles/vidl.dir/vidl_v4l2_devices.o
cd /build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/obj-i486-kfreebsd-gnu/core/vidl
&& /usr/bin/c++   -Dvidl_EXPORTS -DVXL_WARN_DEPRECATED
-DVXL_WARN_DEPRECATED_ONCE -DVXL_LEGACY_ERROR_REPORTING -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
-Werror=format-security   -fPIC
-I/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/obj-i486-kfreebsd-gnu/vcl
-I/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/vcl
-I/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/obj-i486-kfreebsd-gnu/core
-I/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core
-ftemplate-depth-1000 -o CMakeFiles/vidl.dir/vidl_v4l2_devices.o -c
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core/vidl/vidl_v4l2_devices.cxx
In file included from
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core/vidl/vidl_v4l2_device.h:14:0,
                 from
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core/vidl/vidl_v4l2_devices.h:15,
                 from
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core/vidl/vidl_v4l2_devices.cxx:2:
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/core/vidl/vidl_v4l2_control.h:18:54:
fatal error: asm/types.h: No such file or directory
compilation terminated.
/usr/bin/cmake -E cmake_progress_report
/build/buildd-vxl_1.14.0-12-kfreebsd-i386-QLnVQp/vxl-1.14.0/obj-i486-kfreebsd-gnu/CMakeFiles

I am not an expert in videodev2 stuff, so does anyone knows if we
really need to include <asm/types.h> before <videodev2.h> on all arch,
on linux-only ... ?

This seems to be documented almost everywhere:

http://v4l2spec.bytesex.org/spec/capture-example.html


Thanks
-- 
Mathieu


Reply to: