ivipsourcecode / DS-SLAM

GNU General Public License v3.0
678 stars 140 forks source link

Compiling issues #9

Open DigitalGabriele opened 5 years ago

DigitalGabriele commented 5 years ago

Hello,

I am struggling with compiling DS-SLAM. I have a folder _uwsimws//install/share where I have ORB-SLAM2 which works fine. I installed DS-SLAM in _uwsimws/share/install, but when I ran ./DS_SLAM_BUILD.sh, I received errors:

Screenshot 2019-03-26 12 15 27

Then I went to _uwsim_ws/install/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMapSegNetM and ran $ git clone https://github.com/TimoSaemann/caffe-segnet-cudnn5.git $ cmake .

Then re-ran the ./DS_SLAM_BUILD.sh, and still got the same errors.

I am running Ubuntu 14.04, indigo distribution of ROS.

zoeyuchao commented 5 years ago

It seems your path is wrong and use "sudo" because the error said "no permission "

zmll commented 5 years ago

@zoeyuchao when i compiled the libsegmentation file ,I encountered an error : /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMapSegNetM/libsegmentation/libsegmentation.cpp:68:19: error: no matching function for call to ‘caffe::Net::Forward()’ net->Forward(); ^ In file included from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/caffe.hpp:12:0, from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/libsegmentation.hpp:37, from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/libsegmentation.cpp:34: /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/net.hpp:52:31: note: candidate: const std::vector<caffe::Blob>& caffe::Net::Forward(const std::vector<caffe::Blob>&, Dtype) [with Dtype = float] const vector<Blob>& Forward(const vector<Blob > & bottom, ^ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/net.hpp:52:31: note: candidate expects 2 arguments, 0 provided /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/net.hpp:58:10: note: candidate: std::__cxx11::string caffe::Net::Forward(const string&, Dtype) [with Dtype = float; std::cxx11::string = std::cxx11::basic_string] string Forward(const string& input_blob_protos, Dtype* loss = NULL); ^ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/net.hpp:58:10: note: candidate expects 2 arguments, 0 provided In file included from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/caffe.hpp:7:0, from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/libsegmentation.hpp:37, from /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/libsegmentation.cpp:34: /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp: In instantiation of ‘std::__cxx11::string caffe::Blob::shape_string() const [with Dtype = float; std::cxx11::string = std::cxx11::basic_string]’: /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp:122:49: required from ‘int caffe::Blob::CanonicalAxisIndex(int) const [with Dtype = float]’ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp:73:37: required from ‘int caffe::Blob::shape(int) const [with Dtype = float]’ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp:151:17: required from ‘int caffe::Blob::LegacyShape(int) const [with Dtype = float]’ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp:135:51: required from ‘int caffe::Blob::channels() const [with Dtype = float]’ /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM/libsegmentation/libsegmentation.cpp:48:43: required from here /home/xh/dev/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMapSegNetM/libsegmentation/../caffe-segnet/include/caffe/blob.hpp:57:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < shape.size(); ++i) { ^ CMakeFiles/segmentation.dir/build.make:62: recipe for target 'CMakeFiles/segmentation.dir/libsegmentation.cpp.o' failed make[2]: [CMakeFiles/segmentation.dir/libsegmentation.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/segmentation.dir/all' failed make[1]: [CMakeFiles/segmentation.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2