1

I have been trying to work with the flandmark code for facial detection. in order to compile the libraries, I need to run CMAKE.gui.exe. However I keep getting the same error and no one seems to have an idea how to get around it. I would really appreciate if please someone could help.

Error:
Cmake Warning at /OpenCV2.3/cmake/OpenCVConfig.cmake:153(message):

Found OpenCV 2.4.3 Windows Super 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:2(find_package)

CMake Error at CMakeLists.txt:2(find_package):


Found package configuration file:

/OpenCV2.3/cmake/OpenCVConfig.cmake

but it set OPENCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND

drescherjm
  • 10,365
  • 5
  • 44
  • 64
user2681864
  • 27
  • 1
  • 2
  • 3
    Well, the problem is exactly what it says: Your binaries are not compatible with the selected configuration. You need to download the correct set of OpenCV binaries for your compiler. – ComicSansMS Aug 14 '13 at 10:24
  • There is also a discrepancy: "Found OpenCV 2.4.3 Windows Super Pack" vs. "/OpenCV2.3/cmake/OpenCVConfig.cmake". Look at the different versions. Something looks broken there, too. – languitar Aug 22 '13 at 16:46
  • Please fix the title and the tags. It's not CMake that is not compiling, it's probably openCV. – usr1234567 Oct 05 '15 at 13:07
  • If you had this problem when working with Android projects, take care of your `minSdkVersion`. – Summer Sun Sep 09 '19 at 12:16

3 Answers3

3

Just delete CMake cache.

I've had more or less the same problem, posted & answered a question myself.

Check it at https://stackoverflow.com/a/36622706/3292304 for the whole problem if you want. I hope this will help.

Community
  • 1
  • 1
Razakhel
  • 732
  • 13
  • 34
0

I would suggest you take a look at this post

It happened in my case since I had already installed another version of OpenCV.

I hope it helps

imanzabet
  • 2,752
  • 2
  • 26
  • 19
-2

Something weird is going on with the cmake configuration files.

For me the problem was solved by simply setting OPENCV_FOUND to TRUE and OpenCV_FOUND to TRUE.

Also I had to set OpenCV_DIR to /usr/local/share/OpenCV.

Tim Kuipers
  • 1,705
  • 2
  • 16
  • 26
  • 1
    Setting OpenCV_DIR should have been enough. Did you get the same compatibility warning? I am not sure this is answering the same question. – drescherjm Oct 05 '15 at 13:06
  • 1
    Not a great idea to hack around a broken installation / configuration. This will come back to you sooner than you might think. – usr1234567 Oct 05 '15 at 13:06
  • 1
    Setting OpenCV_DIR wasn't enough. Now it's working, before changing OpenCV_FOUND it wasn't working. Of course hacking around a broken installation is a bad idea, but I've tried all other suggested alternatives. If you've got a better alternative then please tell me. – Tim Kuipers Oct 05 '15 at 15:27
  • When this happens to me I locate and read the CMake script for the finder to determine why it can not find the library it is looking for. My goal is to determine if the script has a bug (that needs reporting) or if it is a some type of problem that is specific to my installation. If necessary I debug the CMake script sometimes by inserting message( STATUS ${SomeCmakeVariable}) commands to look at some CMake variables. – drescherjm Oct 05 '15 at 16:55
  • Where are you supposed to set this and how? – Chandler Squires Jan 12 '16 at 15:07