OpenCV安裝問題 一直有error - MAC

Table of Contents

各位好
照著網站上的安裝教學


先在cmake上configure
generating done了
在terminal那邊跑到58%就error
已經試了蠻多次了

OS是10.10.3
opencv-2.4.9
cmake-3.3.0



安裝顯示的error
--------以下--------

[ 58%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/calibfilter.cpp.o
/Users/kiki/Documents/opencv-2.4.9/modules/legacy/src/calibfilter.cpp:98:9: error:
comparison of array 'this->latestPoints' not equal to a null pointer is
always true [-Werror,-Wtautological-pointer-compare]
if (latestPoints != NULL)
^~~~~~~~~~~~ ~~~~
/Users/kiki/Documents/opencv-2.4.9/modules/legacy/src/calibfilter.cpp:532:9: error:
address of array 'this->latestCounts' will always evaluate to 'true'
[-Werror,-Wpointer-bool-conversion]
if( latestCounts )
~~ ^~~~~~~~~~~~
2 errors generated.
make[2]: *** [modules/legacy/CMakeFiles/opencv_legacy.dir/src/calibfilter.cpp.o] Error 1
make[1]: *** [modules/legacy/CMakeFiles/opencv_legacy.dir/all] Error 2
make: *** [all] Error 2

--------以上--------

跑到58%就這樣了
不知道是哪個步驟錯了還是?
麻煩各位幫忙救救我了
謝謝!!!

--

All Comments

George avatarGeorge2015-07-05
用brew裝就沒問題啦
Jacob avatarJacob2015-07-05
用brew裝比較穩 自己make時候有些要disable掉比較穩