I am trying to install opencv2 on my Mac Air (with Lion) via these instructions.
http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
I have successfully made opencv2 with
make j8
However, running sudo make install
produces an odd error noting how numext
isn't defined.
[ 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) ...
^
What does this error mean? I feel that it has to do with the Eigen library. I tried remaking the Eigen library. In turn, this produced another error involving glew, glut, and OpenGL. It feels like going down a rabbit hole.
Does anyone know where the error in the Eigen library comes from?