"OpenCV"被认为没有找到 [英] "OpenCV" is considered to be NOT FOUND

查看:105
本文介绍了"OpenCV"被认为没有找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux风味:Debian(Crunch Bang)

Linux Flavor: Debian (Crunch Bang)

出现问题:尝试使用以下命令构建cvblobs

Problem Occurred: When attempting to build cvblobs with the following command

cd ~/cvblob
cmake .

错误:

CMake Error at cvBlob/CMakeLists.txt:20 (find_package):
 Found package configuration file:

/usr/local/share/OpenCV/OpenCVConfig.cmake

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


-- Configuring incomplete, errors occurred!

推荐答案

当我使用其他一些开源人脸检测模块而不是cvblobs时,遇到了类似的问题. 实际上,您会发现在错误信息的这些行之前有:

Well I met a similar problem when I was going with some other open source face detection modules rather than cvblobs. Actually you will find that before these lines of error-info, there are:

CMake Warning at /usr/local/opencv-2.4.13/cmake/OpenCVConfig.cmake:163 (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:57 (find_package)


CMake Warning at CMakeLists.txt:57 (find_package):
  Found package configuration file:

    /usr/local/opencv-2.4.13/cmake/OpenCVConfig.cmake

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

因此,您可能会注意到它要求您手动指出您构建的OpenCV库版本的目录. 对我来说,我的源代码位于

So you may notice that it asks you to manually point out the directory of you build version of OpenCV library. For me, my source codes are at

/usr/local/opencv-2.4.13/

/usr/local/opencv-2.4.13/

但是我在

/usr/local/opencv-2.4.13/release/

/usr/local/opencv-2.4.13/release/

所以我用: cmake -D OpenCV_DIR=/usr/local/opencv-2.4.13/release/ .. 一切正常:)

so I use: cmake -D OpenCV_DIR=/usr/local/opencv-2.4.13/release/ .. and everything works:)

这篇关于"OpenCV"被认为没有找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆