【问题标题】:There is no Options in Hombrew for opencv installationHomebrew 中没有用于 opencv 安装的选项
【发布时间】:2017-08-27 15:37:08
【问题描述】:

当我在终端 brew info opencv 上运行这个命令时,我得到了这个答案:

opencv: stable 3.3.0 (bottled)
Open source computer vision library
http://opencv.org/
/usr/local/Cellar/opencv/3.3.0_3 (516 files, 122.9MB) *
  Poured from bottle on 2017-08-27 at 01:15:27
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/opencv.rb
==> Dependencies
Build: cmake ✔, pkg-config ✔
Required: eigen ✔, ffmpeg ✔, jpeg ✔, libpng ✔, libtiff ✔, openexr ✔, numpy ✔
==> Requirements
Required: python ✔, python3 ✔
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/amirhossein/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/amirhossein/Library/Python/2.7/lib/python/site-packages/homebrew.pth

--with--contrib 之类的选项在哪里?如何使用 Homebrew 安装带有 contrib 和其他选项的 opencv?

【问题讨论】:

  • 试试brew options opencvbrew options opencv3
  • 不幸的是什么都没发生!!
  • 嗯,不知道所有选项都去了哪里,也不知道为什么。不过使用git clonecmake 安装并不难。

标签: c++ opencv homebrew


【解决方案1】:

没有这样的选项,因为 Homebrew 默认使用 contrib 构建 opencv。两周前将opencv 导入核心存储库时,所有现有选项均已删除。

只需使用brew install opencv

【讨论】:

  • 我不这么认为!
  • @user2626054 什么意思?
猜你喜欢
  • 1970-01-01
  • 2018-09-22
  • 2019-04-16
  • 1970-01-01
  • 2018-02-18
  • 2023-03-31
  • 2015-08-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多