Skip to content

problem with 'make' #2

@guopifen

Description

@guopifen

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/ImageSplicingDetection-master/source/illuminants/rbase/img_read.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/ImageSplicingDetection-master/source/illuminants/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/ImageSplicingDetection-master/source/illuminants/rbase/img_read.cpp:27:38 error: expected primary-expression before ‘double’
if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped);
^
/home/user3/illumination/ImageSplicingDetection-master/source/illuminants/rbase/img_read.cpp:27:38 error: expected ‘)’ before ‘double’
/home/user3/illumination/ImageSplicingDetection-master/source/illuminants/rbase/img_read.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/ImageSplicingDetection-master/source/illuminants/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/ImageSplicingDetection-master/source/illuminants/rbase/img_read.cpp:75:38 error: expected primary-expression before ‘double’
if (divisor <= std::numeric_limits::epsilon()) divisor = getMax(imageRawTyped);
^
/home/user3/illumination/ImageSplicingDetection-master/source/illuminants/rbase/img_read.cpp:75:38 error: expected ‘)’ before ‘double’
/home/user3/illumination/ImageSplicingDetection-master/source/illuminants/rbase/img_read.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/ImageSplicingDetection-master/source/illuminants/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/ImageSplicingDetection-master/source/illuminants/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/ImageSplicingDetection-master/source/illuminants/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:
- OpenCV (tested with 3.1.0)

  • Boost (tested with 1.61)
  • cmake (tested with 3.5.1)
  • python3.4(anaconda)

Looking forward to your reply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions