xcode 在 Mac 上安装 C++ OpenCV

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24975484/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:17:09  来源:igfitidea点击:

Installing C++ OpenCV on Mac

c++xcodemacosopencvcomputer-vision

提问by Bren

I am looking for anyway to set up C++ OpenCV on my mac. I've found numerous articles online but they all end up giving errors of some kind. I am completely indifferent to everything but the C++ part (for example flexible on the use of Xcode). Please don't link an article or post a method unless it has recently worked. I've already gone through tons of those. Any help would be very appreciated, I've been stuck for a couple days on this.

无论如何,我正在寻找在我的 Mac 上设置 C++ OpenCV 的方法。我在网上找到了很多文章,但它们最终都给出了某种错误。我对 C++ 部分以外的所有东西都完全无动于衷(例如灵活地使用 Xcode)。请不要链接文章或发布方法,除非它最近有效。我已经经历了很多。任何帮助将不胜感激,我已经被困在这几天了。

Details: Xcode 5, OS 10.9.4

详细信息:Xcode 5,操作系统 10.9.4

Off Topic Edit: I realize this is a vague question but I'm not really looking for the best tool or solution. Just any one that would work.

题外编辑:我意识到这是一个模糊的问题,但我并不是真的在寻找最好的工具或解决方案。任何一种都行得通。

回答by pepper_chico

brew tap homebrew/science
brew info opencv
brew install opencv

The infocommand was added as a suggestion so that you review the options you have when installing OpenCV. I'm using homebrew.

info命令是作为建议添加的,以便您查看安装 OpenCV 时的选项。我正在使用自制软件