我正在尝试通过这些说明在我的 Mac Air(使用 Lion)上安装 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 库中的错误来自哪里?