PRBonn / depth_clustering

:taxi: Fast and robust clustering of point clouds generated with a Velodyne sensor.
MIT License
1.2k stars 378 forks source link

Compile issues #57

Closed zzhh00 closed 4 years ago

zzhh00 commented 4 years ago

Hi niosus, @niosus I follow the compiling steps from you using catkin_tools, while some errors occur as below:

/usr/bin/ld: cannot find Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib: No such file or directory collect2: error: ld returned 1 exit status make[2]: [/home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib/libimage_labeler.so] Error 1 make[1]: [src/image_labelers/CMakeFiles/image_labeler.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... /usr/bin/ld: cannot find Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib: No such file or directory collect2: error: ld returned 1 exit status make[2]: [/home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib/libvisualization.so] Error 1 make[1]: [src/visualization/CMakeFiles/visualization.dir/all] Error 2 /usr/bin/ld: cannot find Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib: No such file or directory collect2: error: ld returned 1 exit status make[2]: [/home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib/libviewer.so] Error 1 make[1]: [src/qt/viewer/CMakeFiles/viewer.dir/all] Error 2 /home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/src/depth_clustering/src/visualization/cloud_saver.cpp:23:66: warning: unused parameter ‘id’ [-Wunused-parameter] const std::unordered_map<uint16_t, Cloud>& clouds, const int id) { ^ /home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/src/depth_clustering/src/visualization/cloud_saver.cpp:51:70: warning: unused parameter ‘id’ [-Wunused-parameter] const std::unordered_map<uint16_t, cv::Mat>& clusters, const int id) { ^ /home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/src/depth_clustering/src/visualization/cloud_saver.cpp:77:68: warning: unused parameter ‘id’ [-Wunused-parameter] void CloudSaver::OnNewObjectReceived(const Cloud& cloud, const int id) { ^ /usr/bin/ld: cannot find Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib:/opt/ros/kinetic/lib:/usr/lib/x86_64-linux-gnu/hdf5/serial/lib:/usr/lib/x86_64-linux-gnu/hdf5/openmpi/lib:/usr/lib/openmpi/lib: No such file or directory collect2: error: ld returned 1 exit status make[2]: [/home/hz/hz_projects/IPB-Photogrammetry& Robotics, Bonn/depth_clustering_ws/devel/.private/depth_clustering/lib/libros_bridge.so] Error 1 make[1]: [src/ros_bridge/CMakeFiles/ros_bridge.dir/all] Error 2 make: [all] Error 2

How can I solve this problem?Wish for your reply and thanks very much!

zzhh00 commented 4 years ago

I have solved this problem.The cause is that the directory name includes space.When I delete the space,the compiling succeeds.