but it set OpenCV

编程入门 行业动态 更新时间:2024-10-09 17:29:57

but it <a href=https://www.elefans.com/category/jswz/34/1767491.html style=set OpenCV"/>

but it set OpenCV

一、问题详情
在ubuntu中使用CMake编译链接opencv库的程序时找不到opencv库,信息如下:

CMake Warning at //home/smallping/opencv-3.1.0/cmake/OpenCVConfig.cmake:166 (message):
  Found OpenCV Windows Pack but it has no 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:20 (find_package)


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

    //home/smallping/opencv-3.1.0/cmake/OpenCVConfig.cmake

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


-- Configuring incomplete, errors occurred!
 

二、解决方法
经过查阅资料各种尝试,现已解决。主要问题在于库路径问题,

通过

sudo apt-get install cmake-qt-gui

cmake-gui

然后正确设置OpenCV_CONFIG_PATH and OpenCV_DIR。

<

更多推荐

but it set OpenCV

本文发布于:2024-02-14 13:05:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1763786.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:set   OpenCV

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!