当前位置:  开发笔记 > 编程语言 > 正文

brew install opencv3显然是成功的,但缺少cv2.so和cv2.py

如何解决《brewinstallopencv3显然是成功的,但缺少cv2.so和cv2.py》经验,为你挑选了0个好方法。

我正在尝试在我的mac上设置一个工作环境:

brew install opencv3 --c++11 --with-contrib --with-gphoto2 --with-python3
==> Installing opencv3 from homebrew/homebrew-science

...

==> cmake .. -DCMAKE_C_FLAGS_RELEASE= -DCMAKE_CXX_FLAGS_RELEASE= -DCMAKE_INSTALL
==> make
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

opencv3 and opencv install many of the same files.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/opencv3/lib
    CPPFLAGS: -I/usr/local/opt/opencv3/include

==> Summary
  /usr/local/Cellar/opencv3/3.0.0: 351 files, 110M, built in 5.4 minutes

所以自制软件似乎认为安装顺利,但找到cv2.so什么都没发现......

locate *cv*.so 

只发现

/usr/local/Cellar/opencv3/3.0.0/lib/python3.5/site-packages/cv2.cpython-35m-darwin.so

/usr/local/lib/python3.5/site-packages/cv2.cpython-35m-darwin.so

cv2.py或cv.py也不存在......有什么想法吗?

推荐阅读
oDavid_仔o_880
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有