Problem with header files in OpenCV 2.4.3 on FreeBSD
I am currently working on a study comparing the image processing performance of different operating systems. Because of this, I need to install OpenCV 2.4.x (2.4.3 preferably) on my FreeBSD system.
The problem is that it includes asm / types.h, which is not a POSIX compliant library, but rather Linux.
So, I run cmake with the standard flags suggested by the installation guide:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
Where .. correctly indicates the source folder. Everything is going fine, so I run make:
[16%] Create CXX / highgui / CMakeFiles / opencv_highgui.dir / src / cap_libv4l.cpp.o
/root/work/OpenCV-2.4.3/modules/highgui/src/cap_libv4l.cpp:238:54: error : asm / types.h: No such file or directory
The question is: what should I do to tell the compiler to include a different header instead of the original header file?
source to share
This issue was addressed in Bug # 651872: opencv: FTBFS on kfreebsd
In modules / highgui / src / cap_libv4l.cpp , remove or comment out :
#include <asm/types.h>
Do the same in modules / highgui / src / cap_v4l.cpp .
source to share