I attempted to build OpenCV 3.1.0 on my Raspberry Pi 2B. Unfortunately, when I ran:
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=OFF /home/pi/Downloads/opencv-3.1.0
I received a following error:
CMake Error: The source "/home/pi/Downloads/opencv-3.1.0/CMakeLists.txt" does not match the source "/home/pi/Downloads/opencv-3.1.0/modules/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
I want to use OpenCV with C++ and Code::Bocks, which I have already installed. I can't find any solution on internet, so I'd be very gratefull if someone helps me. I am using Raspbian Jezzy.