[求救] OpenCV安裝問題 一直有error

看板MAC (蘋果Mac)作者 (kaikai)時間11年前 (2015/07/03 21:47), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
各位好 照著網站上的安裝教學 先在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%就這樣了 不知道是哪個步驟錯了還是? 麻煩各位幫忙救救我了 謝謝!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.92.243 ※ 文章網址: https://www.ptt.cc/bbs/MAC/M.1435931241.A.527.html

07/03 21:58, , 1F
用brew裝就沒問題啦
07/03 21:58, 1F

07/03 23:54, , 2F
用brew裝比較穩 自己make時候有些要disable掉比較穩
07/03 23:54, 2F
文章代碼(AID): #1Lbf9fKd (MAC)
文章代碼(AID): #1Lbf9fKd (MAC)