In the Name of ALLAH
Hi,
I have been worked on OpenCV and RaspberryPi for some days..
One problem that occurred in my work was when compiling bytefish / libfacerec library:
/home/pi/bytefish-libfacerec-e1b143d/src/lbp.cpp: In function ‘void cv::elbp_(cv::InputArray, cv::OutputArray, int, int)’:
/home/pi/bytefish-libfacerec-e1b143d/src/lbp.cpp:155:110: error: ‘numeric_limits’ is not a member of ‘std’
/home/pi/bytefish-libfacerec-e1b143d/src/lbp.cpp:155:130: error: expected primary-expression before ‘float’
/home/pi/bytefish-libfacerec-e1b143d/src/lbp.cpp:155:130: error: expected ‘)’ before ‘float’
/home/pi/bytefish-libfacerec-e1b143d/src/lbp.cpp:155:154: error: expected ‘)’ before ‘;’ token
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp: In member function ‘void cv::subspace::LDA::lda(cv::InputArray, cv::InputArray)’:
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp:131:5: error: ‘map’ was not declared in this scope
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp:131:9: error: expected primary-expression before ‘int’
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp:131:9: error: expected ‘;’ before ‘int’
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp:133:9: error: ‘label2num’ was not declared in this scope
/home/pi/bytefish-libfacerec-e1b143d/src/subspace.cpp:135:28: error: ‘label2num’ was not declared in this scope
CMakeFiles/opencv_facerec.dir/build.make:126: recipe for target 'CMakeFiles/opencv_facerec.dir/src/lbp.cpp.o' failed
make[2]: *** [CMakeFiles/opencv_facerec.dir/src/lbp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/opencv_facerec.dir/build.make:172: recipe for target 'CMakeFiles/opencv_facerec.dir/src/subspace.cpp.o' failed
make[2]: *** [CMakeFiles/opencv_facerec.dir/src/subspace.cpp.o] Error 1
CMakeFiles/Makefile2:98: recipe for target 'CMakeFiles/opencv_facerec.dir/all' failed
make[1]: *** [CMakeFiles/opencv_facerec.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
This have occurred when I have upgraded my OpenCV from 2.4.10 version to 3.0.0 version
So
The solution is:
downgrading OpenCV version from 3.0.0 to 2.4.10 .