通过自制程序的opencv安装在mac os 10.9上失败

时间:2017-12-27 21:07:35

标签: c++ macos opencv homebrew

我尝试通过自制程序在mac OS 10.9(Mavericks)上安装openCV lib:

brew install --env=std opencv

这样做我最终得到以下错误:

==> Installing opencv
==> Downloading https://github.com/opencv/opencv/archive/3.4.0.tar.gz
==> Downloading from https://codeload.github.com/opencv/opencv/tar.gz/3.4.0
######################################################################## 100.0%
==> Downloading https://github.com/opencv/opencv_contrib/archive/3.4.0.tar.gz
==> Downloading from https://codeload.github.com/opencv/opencv_contrib/tar.gz/3.
######################################################################## 100.0%
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
==> make
Last 15 lines from /Users/Username/Library/Logs/Homebrew/opencv/02.make:
                 ^
/tmp/opencv-20171227-56491-w05uzt/opencv-3.4.0/modules/imgproc/src/fixedpoint.inl.hpp:81:22: note: candidate function
CV_ALWAYS_INLINE operator double() const { return (double)val / (1LL << fixedShift); }
                 ^
/tmp/opencv-20171227-56491-w05uzt/opencv-3.4.0/modules/imgproc/src/fixedpoint.inl.hpp:82:22: note: candidate function
CV_ALWAYS_INLINE operator float() const { return (float)val / (1LL << fixedShift); }
                 ^
/tmp/opencv-20171227-56491-w05uzt/opencv-3.4.0/modules/imgproc/src/resize.cpp:579:16: error: assigning to 'int' from incompatible type 'typename fixedpoint64::WT' (aka '<anonymous>::fixedpoint64')
    dst[i] = res;
           ^ ~~~
19 errors generated.
make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2
make: *** [all] Error 2

到目前为止,我还没有找到解决此问题的方法。任何想法如何解决它?

更新

构建和安装openCV 2.4版本(参见OpenCV installation on Mac OS X)。

0 个答案:

没有答案