Pet*_*ert 7 python macos opencv osx-mavericks
我试图在Macbook Pro 2013年末与小牛队一起安装opencv.我没有找到任何二进制文件,所以我正在尝试构建它.
我试过http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
和http://forums.udacity.com/questions/ 100021223/installed-opencv-on-os-x-mountain-lion
在调用时生成错误2
(CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208)
在这个网站上搜索时,我在小牛队找到了opencv for python(我也尝试了自制软件,但是也产生了错误2,但没有任何进一步的信息)
我google了很多,但找不到任何解决方案对我有用.有没有人在小牛队上安装opencv?
谢谢
使用brew提供以下输出:
brew install homebrew/science/opencv
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-un
Already downloaded: /Library/Caches/Homebrew/opencv-2.4.6.1.tar.gz
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.6.1 -DCMAKE_BUILD_
==> make
cd /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/modules/stitching && /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_symlink_library ../../lib/libopencv_stitching.2.4.6.dylib ../../lib/libopencv_stitching.2.4.dylib ../../lib/libopencv_stitching.dylib
/usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/CMakeFiles 90 91
[100%] Built target opencv_stitching
make[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] Error 2
make: *** [all] Error 2
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
If reporting this please do so at the homebrew/science tap (not mxcl/homebrew).
Run Code Online (Sandbox Code Playgroud)
我通过使用对学生免费的冠层(https://www.enthought.com/products/canopy/)为我解决了这个问题
你可以正常安装brew.
brew install homebrew/science/opencv
Run Code Online (Sandbox Code Playgroud)
要么
brew tap homebrew/science
brew install opencv
Run Code Online (Sandbox Code Playgroud)
这就是我在我的小牛队中安装它的方法,它运行良好.