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

4
  • 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. Commented Aug 14, 2013 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. Commented Aug 22, 2013 at 16:46
  • Please fix the title and the tags. It's not CMake that is not compiling, it's probably openCV. Commented Oct 5, 2015 at 13:07
  • If you had this problem when working with Android projects, take care of your minSdkVersion. Commented Sep 9, 2019 at 12:16

3 Answers 3

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.

Sign up to request clarification or add additional context in comments.

Comments

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

Comments

-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.

5 Comments

Setting OpenCV_DIR should have been enough. Did you get the same compatibility warning? I am not sure this is answering the same question.
Not a great idea to hack around a broken installation / configuration. This will come back to you sooner than you might think.
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.
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.
Where are you supposed to set this and how?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.