尝试使用自制软件安装opencv。错误:modules / highgui / CMakeFiles / opencv_highgui.dir / all错误2

时间:2013-05-03 18:39:18

标签: macos opencv

我有mac,os x 10.8.3

我曾经安装了macport,我删除了它并尝试使用Homebrew安装opencv。

我安装了跛脚,ffmpeg。改变了$ PATH。错误仍然相同:

Nellys-MacBook-Pro:~ nellysmitt$ brew install opencv
==> Downloading http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/
Already downloaded: /Library/Caches/Homebrew/opencv-2.4.5.tar.gz
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.5 -DCMAKE_BUILD_TY
==> make
[ 38%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_tiff.cpp.o
Linking CXX shared library ../../lib/libopencv_video.dylib
[ 38%] Built target opencv_video
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

在安装ffmpeg之前,Brew医生还可以。不,它告诉我们:

Nellys-MacBook-Pro:~ nellysmitt$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
    /usr/local/lib/libavcodec.52.108.0.dylib
    /usr/local/lib/libavcore.0.16.1.dylib
    /usr/local/lib/libavdevice.52.2.3.dylib
    /usr/local/lib/libavfilter.1.74.0.dylib
    /usr/local/lib/libavformat.52.93.0.dylib
    /usr/local/lib/libavutil.50.36.0.dylib
    /usr/local/lib/libmp3lame.0.dylib
    /usr/local/lib/libswscale.0.12.0.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libmp3lame.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/libavcodec.pc
    /usr/local/lib/pkgconfig/libavcore.pc
    /usr/local/lib/pkgconfig/libavdevice.pc
    /usr/local/lib/pkgconfig/libavfilter.pc
    /usr/local/lib/pkgconfig/libavformat.pc
    /usr/local/lib/pkgconfig/libavutil.pc
    /usr/local/lib/pkgconfig/libswscale.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/libavcodec.a
    /usr/local/lib/libavcore.a
    /usr/local/lib/libavdevice.a
    /usr/local/lib/libavfilter.a
    /usr/local/lib/libavformat.a
    /usr/local/lib/libavutil.a
    /usr/local/lib/libmp3lame.a
    /usr/local/lib/libswscale.a

但ERROR是过去24小时的相同内容。我疯了,绝望了。不知道如何安装这个该死的OpenCV。

1 个答案:

答案 0 :(得分:0)

这对我有用2013年10月:

首先 brew更新以确保自制软件是最新的 然后酿造医生并确保自制软件报告没有问题

然后, brew tap homebrew / science 指向最新的opencv

然后 brew install opencv

祝你好运!

相关问题