i can't install on ubuntu 10.04 x64. i install latest version.
I try with http://answers.opencv.org/question/26250/opencv-linux-installation/ but
When I execute make:
/home/psl/opencv/opencv/modules/core/src/stat.cpp: In function ‘void cv::getMinMaxRes(const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::Mat&, double*, double*, int*, int*, int, int, int)’:
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1215: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1215: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1215: error: ‘::max’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘::min’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘::max’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:1216: error: ‘::min’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp: In function ‘void cv::batchDistL1_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’:
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2748: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2748: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2748: error: ‘::max’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp: In function ‘void cv::batchDistL2Sqr_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’:
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2766: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2766: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2766: error: ‘::max’ has not been declared
/home/psl/opencv/opencv/modules/core/src/stat.cpp: In function ‘void cv::batchDistL2_(const _Tp*, const _Tp*, size_t, int, int, _Rt*, const uchar*)’:
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2784: error: ‘numeric_limits’ is not a member of ‘std’
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2784: error: expected primary-expression before ‘>’ token
/home/psl/opencv/opencv/modules/core/src/stat.cpp:2784: error: ‘::max’ has not been declared
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.o] 错误 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] 错误 2
make: *** [all] 错误 2
opencv version ?
If you are on Linux, you don't have to bother compiling it by yourself unless you have a really good reason. If this is your case, you should try "sudo apt-get install libopencv-dev" or maybe "sudo apt-get install libopencv*" if connection is not a problem.
First of all, thank you. I'm sure I installed libopencv-dev and libopencv.i install the latest version.
i was asking about the version, because there's no getMinMaxRes in the current 2.4 branch, also the line numbers do not match.
ok, that's master branch(3.0). but not a really fresh version. (the current 3.0 version has a limits header at the top.
so if you want to compile 3.0, pull a fresh version from github ,
if you want to compile 2.4.9, do a
git checkout 2.4