yan99033 / monodepth-cpp

Tensorflow C++ implementation for single-image depth estimation (Monodepth)
MIT License
105 stars 33 forks source link

About using monodepth #6

Closed Liming-Cheng closed 5 years ago

Liming-Cheng commented 5 years ago

hi @yan99033 , I'm sorry to bother you. I build this demo successfully, but failed to build CNN-DSO, which used monodepth-cpp. I'm very confused for the error info, and I haven't solved the issue until now. Could you help me if you have time? Thank you very much!!

error info: [ 96%] Building CXX object CMakeFiles/dso_dataset.dir/src/main_dso_pangolin.cpp.o /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp: In function ‘void parseArgument(char)’: /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:222:4: error: reference to ‘reverse’ is ambiguous reverse = true; ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:59:6: note: candidates are: bool reverse bool reverse = false; ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/local/include/eigen3/Eigen/Core:300, from /home/cheng/CNN-DSO/src/util/NumType.h:27, from /home/cheng/CNN-DSO/src/IOWrapper/Output3DWrapper.h:30, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:33: /usr/include/c++/4.8/bits/stl_algo.h:1442:5: note: template void std::reverse(_BIter, _BIter) reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:262:3: error: reference to ‘end’ is ambiguous end = option; ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:62:5: note: candidates are: int end int end=100000; ^ In file included from /usr/include/c++/4.8/string:51:0, from /usr/include/c++/4.8/stdexcept:39, from /usr/include/c++/4.8/array:38, from /usr/include/c++/4.8/tuple:39, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp std::end(_Tp (&)[_Nm]) end(_Tp (&arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template decltype (cont.end()) std::end(const _Container&) end(const _Container& cont) -> decltype(cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template decltype (cont.end()) std::end(_Container&) end(_Container& cont) -> decltype(cont.end()) ^ In file included from /usr/include/c++/4.8/utility:74:0, from /usr/include/c++/4.8/tuple:38, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/initializer_list:99:5: note: template constexpr const _Tp* std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> ils) noexcept ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp: In function ‘int main(int, char)’: /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:385:13: error: reference to ‘end’ is ambiguous int lend = end; ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:62:5: note: candidates are: int end int end=100000; ^ In file included from /usr/include/c++/4.8/string:51:0, from /usr/include/c++/4.8/stdexcept:39, from /usr/include/c++/4.8/array:38, from /usr/include/c++/4.8/tuple:39, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template decltype (cont.end()) std::end(const _Container&) end(const _Container& cont) -> decltype(cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template decltype (cont.end()) std::end(_Container&) end(_Container& cont) -> decltype(cont.end()) ^ In file included from /usr/include/c++/4.8/utility:74:0, from /usr/include/c++/4.8/tuple:38, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/initializer_list:99:5: note: template constexpr const _Tp std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> ils) noexcept ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:387:5: error: reference to ‘reverse’ is ambiguous if(reverse) ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:59:6: note: candidates are: bool reverse bool reverse = false; ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from /usr/local/include/eigen3/Eigen/Core:300, from /home/cheng/CNN-DSO/src/util/NumType.h:27, from /home/cheng/CNN-DSO/src/IOWrapper/Output3DWrapper.h:30, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:33: /usr/include/c++/4.8/bits/stl_algo.h:1442:5: note: template void std::reverse(_BIter, _BIter) reverse(_BidirectionalIterator __first, _BidirectionalIterator last) ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:390:10: error: reference to ‘end’ is ambiguous lstart=end-1; ^ /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:62:5: note: candidates are: int end int end=100000; ^ In file included from /usr/include/c++/4.8/string:51:0, from /usr/include/c++/4.8/stdexcept:39, from /usr/include/c++/4.8/array:38, from /usr/include/c++/4.8/tuple:39, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, long unsigned int _Nm> _Tp std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template decltype (cont.end()) std::end(const _Container&) end(const _Container& cont) -> decltype(cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template decltype (cont.end()) std::end(_Container&) end(_Container& cont) -> decltype(cont.end()) ^ In file included from /usr/include/c++/4.8/utility:74:0, from /usr/include/c++/4.8/tuple:38, from /usr/include/c++/4.8/functional:55, from /usr/include/c++/4.8/thread:39, from /home/cheng/CNN-DSO/src/main_dso_pangolin.cpp:26: /usr/include/c++/4.8/initializer_list:99:5: note: template constexpr const _Tp std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> __ils) noexcept ^ CMakeFiles/dso_dataset.dir/build.make:62: recipe for target 'CMakeFiles/dso_dataset.dir/src/main_dso_pangolin.cpp.o' failed make[2]: ** [CMakeFiles/dso_dataset.dir/src/main_dso_pangolin.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/dso_dataset.dir/all' failed make[1]: [CMakeFiles/dso_dataset.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2