I\'m trying to compile OpenCV. I\'ve tried the master branch (which is currently on commit dc9602e) and version/tag 3.1.0. I\'m using Fedora 24, I first tried using gcc that
For archlinux distro like Manjaro the flags -D ENABLE_PRECOMPILED_HEADERS=OFF and -D CMAKE_NO_SYSTEM_FROM_IMPORTED=ON fixed it with success.
-D ENABLE_PRECOMPILED_HEADERS=OFF
-D CMAKE_NO_SYSTEM_FROM_IMPORTED=ON
I also got problems with blas and cblas during compilation. I linked cblas by adding CMAKE_EXE_LINKER_FLAGS=-lcblas.
blas
cblas
CMAKE_EXE_LINKER_FLAGS=-lcblas