Closed gyguo closed 7 years ago
when I run : make -j 5 all tools pycaffe I get error do you know how to solve it ? Could you help me ? The error like this:
tools/convert_imageset_and_disparity.cpp:5:1: warning: multi-line comment [-Wcomment]
// convert_imageset [-g] ROOTFOLDER/ LISTFILE DB_NAME RANDOM_SHUFFLE[0 or 1] \
^
tools/convert_imageset_and_disparity.cpp: In member function ‘void ImagePair::read_data()’:
tools/convert_imageset_and_disparity.cpp:156:31: error: ‘numeric_limits’ is not a member of ‘std’
value=std::numeric_limits
@gyguo
@gyguo You're right, thanks!
@strivejin
tools/convert_imageset_and_disparity.cpp:156:31: error: ‘numeric_limits’ is not a member of ‘std’
value=std::numeric_limits::max();
^
There's something about your system that I don't understand. This error should not happen: <limits>
is included (and does not throw an error) and you are using GCC 5.3 on Ubuntu 16.04.
But you don't get the whole output from VERBOSE=1 make
and your compiler does not find std::numeric_limits
which is in <limits>
.
Does the file /usr/include/limits.h
exist on your system?
@nikolausmayer
thanks for your reply. The file /usr/include/limits.h exist on my system. I also change the gcc version to gcc5.4 . I tried a lot of ways,but it still do not work. I think there may be some problems with my system. I will try to reinstall my Ubuntu 16.04,then try it again.
@nikolausmayer
I am so happy I can run it by reinstall my system . I run it in Ubuntu 16.04 ,gcc 5.4 ,CUDA 8 ,CUDNN 5.1 ,Opencv3.1. And add #include
@gyguo fixed in https://github.com/lmb-freiburg/flownet2/commit/9eed763789c06fa5f44e7af79078c0446a82bfc6
@strivejin good to hear :) although still a strange issue
@nikolausmayer Similarly, missing #include <limits>
in tools/convert_imageset_and_flow.cpp results in
tools/convert_imageset_and_flow.cpp <...> error: ‘numeric_limits’ is not a member of ‘std’ value=std::numeric_limits::max();
I believe that was caused the issue for @strivejin as well.
Thanks,
Guy
https://github.com/lmb-freiburg/flownet2/blob/1d72c5206b891d9dc97d8fe075213e0afbfa9814/tools/convert_imageset_and_flow.cpp#L135
assert(cv_img2.cols==xSize && cv_img1.rows==ySize );
should be changed toassert(cv_img2.cols==xSize && cv_img2.rows==ySize );