Build OpenCV on a freeBSD 10
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...
g++ version ?
also, you seem to build opencv3.0(master), pretty unstable atm. did you want to do that ?
falling back to 2.4.9 by doing
git checkout 2.4
might be a good idea.-- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/CC (ver 3.3.0)
On 2.4.9 version i have same problem: [ 17%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_libv4l.cpp.o /usr/local/src/opencv/modules/highgui/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
help me!!!