tiagojc / IBTSFIF

7 stars 4 forks source link

problem with 'make' #3

Open guopifen opened 5 years ago

guopifen commented 5 years ago

When I type 'make' to build the code,I encounter a problems below ............ [ 79%] Building CXX object CMakeFiles/vole.dir/superpixels/normal_image.cpp.o [ 82%] Building CXX object CMakeFiles/vole.dir/superpixels/superpixelsegmentation.cpp.o [ 85%] Building CXX object CMakeFiles/vole.dir/rbase/illum.cpp.o [ 88%] Building CXX object CMakeFiles/vole.dir/rbase/color_space.cpp.o [ 91%] Building CXX object CMakeFiles/vole.dir/rbase/img_read.cpp.o /home/user3/illumination/illum_maps/rbase/imgread.cpp: In static member function ‘static cv::Mat<cv::Vec<double, 3> > iread::IRead::img_read(const string&, const string&, int, int)’: /home/user3/illumination/illum_maps/rbase/img_read.cpp:27:18: error: ‘numeric_limits’ is not a member of ‘std’ if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped); ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:27:38: error: expected primary-expression before ‘double’ if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped); ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:27:38: error: expected ‘)’ before ‘double’ /home/user3/illumination/illum_maps/rbase/imgread.cpp: In static member function ‘static cv::Mat<cv::Vec<double, 3> > iread::IRead::img_read_dl(const string&, const string&, int, int, int)’: /home/user3/illumination/illum_maps/rbase/img_read.cpp:75:18: error: ‘numeric_limits’ is not a member of ‘std’ if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped); ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:75:38: error: expected primary-expression before ‘double’ if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped); ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:75:38: error: expected ‘)’ before ‘double’ /home/user3/illumination/illum_maps/rbase/imgread.cpp: In static member function ‘static cv::Mat<cv::Vec<double, 3> > iread::IRead::img_read_dl_max(const string&, const string&, int, int&, int)’: /home/user3/illumination/illum_maps/rbase/img_read.cpp:154:18: error: ‘numeric_limits’ is not a member of ‘std’ if (divisor <= std::numeric_limits::epsilon()) { divisor = getMax(imageRawTyped); maxInt ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:154:38: error: expected primary-expression before ‘double’ if (divisor <= std::numeric_limits::epsilon()) { divisor = getMax(imageRawTyped); maxInt ^ /home/user3/illumination/illum_maps/rbase/img_read.cpp:154:38: error: expected ‘)’ before ‘double’ CMakeFiles/vole.dir/build.make:782: recipe for target 'CMakeFiles/vole.dir/rbase/img_read.cpp.o' failed make[2]: [CMakeFiles/vole.dir/rbase/img_read.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/vole.dir/all' failed make[1]: [CMakeFiles/vole.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

What should I do to solve these problems and complete 'make'?

My environment: