I'm trying to build OpenCV with cmake on a FreeBSD 10 machine by following steps:
cd /usr/local/src git clone https://github.com/Itseez/opencv.git cd opencv && mkdir release && cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
Then i get an error message:
[ 29%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_libv4l.cpp.o /usr/local/src/opencvtest/modules/videoio/src/cap_libv4l.cpp:240:10: fatal error: 'asm/types.h' file not found
include <asm types.h=""> /* for videodev2.h */
^
1 error generated. * Error code 1
please help me...