简体   繁体   English

安装后找不到 OpenCV?

[英]OpenCV not found when I have it installed?

I am trying to compile a cpp file from the dlib library using cmake.我正在尝试使用 cmake 从 dlib 库编译一个 cpp 文件。

When I use the command cmake ..当我使用命令cmake ..

It gives me this error OpenCV not found, so we won't build the webcam_face_pose_ex example.它给了我这个错误OpenCV not found, so we won't build the webcam_face_pose_ex example.

I have OpenCV installed and to be sure I just reinstalled it using brew install opencv我已经安装了 OpenCV,并确保我刚刚使用brew install opencv重新安装了它

Would like some help on what else I could do?想要一些关于我还能做些什么的帮助?

Download the opencv sources and follow the instructions to build and install the project using make.下载opencv 源代码按照说明使用 make 构建和安装项目。 This will allow make to install opencv to where it can find it later.这将允许 make 将 opencv 安装到以后可以找到的位置。

When complete, re-compile the dlib project using cmake.完成后,使用 cmake 重新编译 dlib 项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已经安装了 OpenCV C++。 我可以在不重新安装库的情况下使用它在 Python 中的功能吗? - I already have OpenCV C++ installed. Can I use its functions in Python without reinstalling the library? 当我安装了多个Visual Studio版本时,如何使用Visual Studio 2008构建增强功能? - How do I build boost with Visual Studio 2008 when I have multiple Visual Studio versions installed? CMake:编译OpenCV时找不到CUDA库 - CMake: CUDA libraries not found when compiling OpenCV 使用opencv时找不到lopencv_core - lopencv_core not found when using opencv 当我的计算机中有两个OpenCV(相同版本)时,如何选择在CMakeLists.txt中使用哪个OpenCV? - How to Choose which OpenCV to use in CMakeLists.txt when I have two OpenCV (same versions) in my computer? 将图像转换为灰度时,OpenCV中有异常 - Have exception in OpenCV when converting an image to grayscale 我在Clang中发现了一个错误吗? - Have I found a bug in Clang? 即使安装了MSVCP100.dll也找不到错误 - MSVCP100.dll not found error even when it is installed 找不到make swig命令-在本地安装swig时 - Make swig command not found - When swig is installed locally 编译OpenCV程序,不需要安装opencv - Compiling OpenCV program and not requiring opencv Installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM