我正试着在2013年末的Macbook Pro上安装opencv。我没有找到任何二进制文件,所以我正在尝试构建它。
我试过http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
和http://forums.udacity.com/questions/100021223/installing-opencv-on-os-x-mountain-lion
当调用make时,会产生错误2
( cuda_compile_generated_matrix_operations.cu.o.cmake:208)上的CMake错误
当我在这个网站上搜索时,我找到了opencv for python on mavericks (我也尝试了自制的,也产生了错误2,但没有任何进一步的信息)
我在谷歌上搜索了很多,但没有一个解决方案对我有效。有谁有在Mavericks上安装opencv的tut吗?
谢谢
使用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).我用canopy (https://www.enthought.com/products/canopy/)为我解决了这个问题,它对学生是免费的
发布于 2013-11-11 00:14:49
您可以正常使用brew进行安装。
brew install homebrew/science/opencv或
brew tap homebrew/science
brew install opencv这就是我在我的mavericks上安装它的方式,它工作得很好。
发布于 2014-07-30 01:49:28
$ brew search opencv
homebrew/science/opencv
$ brew install homebrew/science/opencv安装后,有一些注意事项:
如果您需要==>来查找已安装的站点包,请注意:
mkdir -p ~/库/python/2.7/lib/python/站点包
echo‘/usr/local/lib/python2.7/site-package’> ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
所以,就这么做吧
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pthhttps://stackoverflow.com/questions/19891790
复制相似问题