Ask Your Question

Revision history [back]

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

click to hide/show revision 2
No.2 Revision

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

berak gravatar image

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

release

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

..

make

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=""> found #include <asm/types.h> /* for videodev2.h */

*/
     ^

1 error generated. * Error code 1

please help me...