Build OpenCV on a freeBSD 10

asked 2014-08-28 08:52:13 -0500

updated 2014-08-28 08:57:06 -0500

berak gravatar image

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...

edit retag flag offensive close merge delete

Comments

g++ version ?

berak gravatar imageberak ( 2014-08-28 09:04:48 -0500 )edit

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.

berak gravatar imageberak ( 2014-08-28 09:08:02 -0500 )edit

-- C/C++: -- Built as dynamic libs?: YES -- C++ Compiler: /usr/bin/CC (ver 3.3.0)

architector gravatar imagearchitector ( 2014-08-28 09:26:33 -0500 )edit

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

architector gravatar imagearchitector ( 2014-08-28 09:34:51 -0500 )edit

help me!!!

architector gravatar imagearchitector ( 2014-08-28 13:43:55 -0500 )edit