When I enter into my Opencv project directory and do the following command-
sudo cmake . sudo make
it generates make files without any error and the program runs successfully.
But when I do
it gives me this error-
"CMake Warning at /home/naman/opencv-2.4.9/cmake/OpenCVConfig.cmake:161 (message): 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:3 (find_package)
CMake Error at CMakeLists.txt:3 (find_package): Found package configuration file:
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
-- Configuring incomplete, errors occurred!"
And it complies successfully in my friend's pc when done
How to remove this error?