Ask Your Question

Revision history [back]

Hi,

Have you try with -D ENABLE_PRECOMPILED_HEADERS=OFF flag ?

The cmake command with this flag will prevent this error.

Try to copy and paste this command to your terminal. It should work cmake -D CMAKE_BUILD_TYPE=RELEASE \     -D CMAKE_INSTALL_PREFIX=/usr/local \     -D INSTALL_C_EXAMPLES=ON\     -D INSTALL_PYTHON_EXAMPLES=ON\ -D ENABLE_PRECOMPILED_HEADERS=OFF \     -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.0.0/modules \     -D BUILD_EXAMPLES=ON..