To start off, I know this question has too many duplicates, but none of them work in my case.
I have installed OpenCV 2.4.13.2 on my Ubuntu 16.04 system. I followed the installation instructions outlined here: http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/. As per step#6 mentioned therein, I could confirm that OpenCV was installed successfully.
However, when I try to run cmake .. while building this project: https://github.com/andrewssobral/vehicle_detection_haarcascades/, I get an error saying:
Found OpenCV Windows Pack but it has not binaries compatible with your configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): CMakeLists.txt:5 (find_package)
CMake Error at CMakeLists.txt:5 (find_package): Found package configuration file:
/home/abhishek/opencv-2.4.13.2/cmake/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
-- Configuring incomplete, errors occurred! See also "/home/abhishek/opencv-2.4.13.2/vehicle_detection_haarcascades/build/CMakeFiles/CMakeOutput.log".
As mentioned in other SO answers, I tried deleting the cache files, reinstalling, reinstalling in a different directory, etc., but none of them works. So, how can I overcome this error? I am going to use this vehicle detection project (developed majorly in C++) in an academic setting and I would greatly appreciate your help!
cmake ..with other params likeCMAKE_BUILD_TYPE,CMAKE_INSTALL_PREFIX- ZdaRcmaketells you to do?You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.- negaminSdkVersion. - Summer Sun