我正試圖通過這些說明在我的Mac Air(與Lion)上安裝opencv2。爲什麼我無法安裝python opencv2?
http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
我已經成功地進行了用opencv2
make j8
但是,運行sudo make install
產生一個奇數錯誤注意到numext
是如何不限定。
[ 63%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/rgbdodometry.cpp.o
In file included from /Users/davidfaux/Downloads/opencv-2.4.7/modules/contrib/src/rgbdodometry.cpp:65:
In file included from /usr/local/include/unsupported/Eigen/MatrixFunctions:61:
/usr/local/include/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h:119:41: error:
use of undeclared identifier 'numext'
result(0,1) = A(0,1) * (Scalar(2) * numext::atanh2(y,x) + ...
^
In file included from /Users/davidfaux/Downloads/opencv-2.4.7/modules/contrib/src/rgbdodometry.cpp:65:
In file included from /usr/local/include/unsupported/Eigen/MatrixFunctions:62:
/usr/local/include/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h:242:36: error:
use of undeclared identifier 'numext'
int unwindingNumber = std::ceil((numext::imag(logCurr - logPrev) - M_PI) ...
^
這個錯誤是什麼意思?我覺得它與Eigen庫有關。我試圖重建Eigen庫。反過來,這又產生了涉及glew,glut和OpenGL的另一個錯誤。感覺就像是一個兔子洞。
有沒有人知道Eigen庫中的錯誤來自哪裏?
謝謝!我想你是正確的。我最近升級了Eigen,並在我的路徑中找到了兩個版本。我刪除了兩個並重新安裝了Eigen。這解決了問題。 – dangerChihuahua007