hku-mars / loam_livox

A robust LiDAR Odometry and Mapping (LOAM) package for Livox-LiDAR
GNU General Public License v2.0
1.43k stars 435 forks source link

'Catkin_make' (§ 2-build) give me 'Invoking "make -j12 -l12" failed' #73

Closed sylvain0 closed 3 years ago

sylvain0 commented 4 years ago

Hi, "catkin_make" from 2-build in the readme.md give me errors. Does anyone have a research lead please?

NB : The Ceres and PCL installations did not pose a problem upstream

sylvain@GS65:~/catkin_ws$ catkin_make
Base path: /home/sylvain/catkin_ws
Source space: /home/sylvain/catkin_ws/src
Build space: /home/sylvain/catkin_ws/build
Devel space: /home/sylvain/catkin_ws/devel
Install space: /home/sylvain/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/sylvain/catkin_ws/build"
####
####
#### Running command: "make -j12 -l12" in "/home/sylvain/catkin_ws/build"
####
[ 33%] Built target read_camera
[ 50%] Building CXX object loam_livox/CMakeFiles/livox_scanRegistration.dir/source/laser_feature_extractor.cpp.o
[ 66%] Building CXX object loam_livox/CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:47:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::fromPCL(const pcl::Vertices&, pcl_msgs::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:356:30: error: no match for ‘operator=’ (operand types are ‘pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type {aka std::vector<unsigned int>}’ and ‘const Indices {aka const std::vector<int>}’)
     vert.vertices = pcl_vert.vertices;
                              ^~~~~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
     vector<_Tp, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘const std::vector<unsigned int>&’
In file included from /usr/include/c++/7/vector:64:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘std::vector<unsigned int>&&’
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘std::initializer_list<unsigned int>’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:47:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::moveFromPCL(pcl::Vertices&, pcl_msgs::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:373:41: error: no matching function for call to ‘std::vector<unsigned int>::swap(pcl::Indices&)’
     vert.vertices.swap(pcl_vert.vertices);
                                         ^
In file included from /usr/include/c++/7/vector:64:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:1229:7: note: candidate: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       swap(vector& __x) _GLIBCXX_NOEXCEPT
       ^~~~
/usr/include/c++/7/bits/stl_vector.h:1229:7: note:   no known conversion for argument 1 from ‘pcl::Indices {aka std::vector<int>}’ to ‘std::vector<unsigned int>&’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:47:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::toPCL(const Vertices&, pcl::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:390:30: error: no match for ‘operator=’ (operand types are ‘pcl::Indices {aka std::vector<int>}’ and ‘const _vertices_type {aka const std::vector<unsigned int>}’)
     pcl_vert.vertices = vert.vertices;
                              ^~~~~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
     vector<_Tp, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘const std::vector<int>&’
In file included from /usr/include/c++/7/vector:64:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘std::vector<int>&&’
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘std::initializer_list<int>’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:47:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::moveToPCL(pcl_msgs::Vertices&, pcl::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:407:41: error: no matching function for call to ‘std::vector<int>::swap(pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type&)’
     pcl_vert.vertices.swap(vert.vertices);
                                         ^
In file included from /usr/include/c++/7/vector:64:0,
                 from /opt/ros/melodic/include/nav_msgs/Odometry.h:10,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:41,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:1229:7: note: candidate: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
       swap(vector& __x) _GLIBCXX_NOEXCEPT
       ^~~~
/usr/include/c++/7/bits/stl_vector.h:1229:7: note:   no known conversion for argument 1 from ‘pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type {aka std::vector<unsigned int>}’ to ‘std::vector<int>&’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:56:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.cpp:37:
/home/sylvain/catkin_ws/src/loam_livox/source/livox_feature_extractor.hpp: In instantiation of ‘int Livox_laser::projection_scan_3d_2d(pcl::PointCloud<PointT>&, std::vector<float>&) [with T = pcl::PointXYZI]’:
/home/sylvain/catkin_ws/src/loam_livox/source/livox_feature_extractor.hpp:755:13:   required from ‘std::vector<pcl::PointCloud<pcl::PointXYZI> > Livox_laser::extract_laser_features(pcl::PointCloud<PointT>&, double) [with T = pcl::PointXYZI]’
/home/sylvain/catkin_ws/src/loam_livox/source/laser_feature_extractor.hpp:285:113:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/livox_feature_extractor.hpp:577:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if ( val_index < split_idx.size() - 2 )
                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:54:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::fromPCL(const pcl::Vertices&, pcl_msgs::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:356:30: error: no match for ‘operator=’ (operand types are ‘pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type {aka std::vector<unsigned int>}’ and ‘const Indices {aka const std::vector<int>}’)
     vert.vertices = pcl_vert.vertices;
                              ^~~~~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
     vector<_Tp, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘const std::vector<unsigned int>&’
In file included from /usr/include/c++/7/vector:64:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘std::vector<unsigned int>&&’
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note:   no known conversion for argument 1 from ‘const Indices {aka const std::vector<int>}’ to ‘std::initializer_list<unsigned int>’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:54:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::moveFromPCL(pcl::Vertices&, pcl_msgs::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:373:41: error: no matching function for call to ‘std::vector<unsigned int>::swap(pcl::Indices&)’
     vert.vertices.swap(pcl_vert.vertices);
                                         ^
In file included from /usr/include/c++/7/vector:64:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:1229:7: note: candidate: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>]
       swap(vector& __x) _GLIBCXX_NOEXCEPT
       ^~~~
/usr/include/c++/7/bits/stl_vector.h:1229:7: note:   no known conversion for argument 1 from ‘pcl::Indices {aka std::vector<int>}’ to ‘std::vector<unsigned int>&’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:54:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::toPCL(const Vertices&, pcl::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:390:30: error: no match for ‘operator=’ (operand types are ‘pcl::Indices {aka std::vector<int>}’ and ‘const _vertices_type {aka const std::vector<unsigned int>}’)
     pcl_vert.vertices = vert.vertices;
                              ^~~~~~~~
In file included from /usr/include/c++/7/vector:69:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/vector.tcc:179:5: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
     vector<_Tp, _Alloc>::
     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/vector.tcc:179:5: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘const std::vector<int>&’
In file included from /usr/include/c++/7/vector:64:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:461:7: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘std::vector<int>&&’
/usr/include/c++/7/bits/stl_vector.h:482:7: note: candidate: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]
       operator=(initializer_list<value_type> __l)
       ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:482:7: note:   no known conversion for argument 1 from ‘const _vertices_type {aka const std::vector<unsigned int>}’ to ‘std::initializer_list<int>’
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:54:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::moveToPCL(pcl_msgs::Vertices&, pcl::Vertices&)’:
/opt/ros/melodic/include/pcl_conversions/pcl_conversions.h:407:41: error: no matching function for call to ‘std::vector<int>::swap(pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type&)’
     pcl_vert.vertices.swap(vert.vertices);
                                         ^
In file included from /usr/include/c++/7/vector:64:0,
                 from /usr/local/include/ceres/internal/array_selector.h:36,
                 from /usr/local/include/ceres/internal/autodiff.h:148,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:40,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/usr/include/c++/7/bits/stl_vector.h:1229:7: note: candidate: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]
       swap(vector& __x) _GLIBCXX_NOEXCEPT
       ^~~~
/usr/include/c++/7/bits/stl_vector.h:1229:7: note:   no known conversion for argument 1 from ‘pcl_msgs::Vertices_<std::allocator<void> >::_vertices_type {aka std::vector<unsigned int>}’ to ‘std::vector<int>&’
loam_livox/CMakeFiles/livox_scanRegistration.dir/build.make:62: recipe for target 'loam_livox/CMakeFiles/livox_scanRegistration.dir/source/laser_feature_extractor.cpp.o' failed
make[2]: *** [loam_livox/CMakeFiles/livox_scanRegistration.dir/source/laser_feature_extractor.cpp.o] Error 1
CMakeFiles/Makefile2:494: recipe for target 'loam_livox/CMakeFiles/livox_scanRegistration.dir/all' failed
make[1]: *** [loam_livox/CMakeFiles/livox_scanRegistration.dir/all] Error 2
make[1]: *** Attente des tâches non terminées....
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:0:
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp: In member function ‘void Laser_mapping::service_loop_detection()’:
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:1030:180: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
                     if( (last_keyframe->m_set_cell.size() - keyframe_vec[ his ]->m_set_cell.size() ) /  (last_keyframe->m_set_cell.size() + keyframe_vec[ his ]->m_set_cell.size())*0.1 )
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:969:51: warning: unused variable ‘ratio_non_zero_plane’ [-Wunused-variable]
             float                                 ratio_non_zero_plane = last_keyframe->m_ratio_nonzero_plane;
                                                   ^~~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:970:51: warning: unused variable ‘ratio_non_zero_line’ [-Wunused-variable]
             float                                 ratio_non_zero_line = last_keyframe->m_ratio_nonzero_line;
                                                   ^~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:981:19: warning: unused variable ‘sim_plane_res_cv’ [-Wunused-variable]
             float sim_plane_res_cv = 0, sim_plane_res = 0;
                   ^~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:982:19: warning: unused variable ‘sim_line_res_cv’ [-Wunused-variable]
             float sim_line_res_cv = 0, sim_line_res = 0;
                   ^~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp: In member function ‘int Laser_mapping::process_new_scan()’:
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:1554:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if(m_keyframe_need_precession_list.size() > m_loop_closure_maximum_keyframe_in_wating_list)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:66:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp: In instantiation of ‘static ceres::CostFunction* ceres_icp_point2line_mb<_T>::Create(const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, _T, Eigen::Matrix<_Scalar, 4, 1>, Eigen::Matrix<_Scalar, 3, 1>) [with _T = double]’:
/home/sylvain/catkin_ws/src/loam_livox/source/point_cloud_registration.hpp:307:82:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:146:13: warning: ‘new’ of type ‘ceres_icp_point2line_mb<double>’ with extended alignment 32 [-Waligned-new=]
             new ceres_icp_point2line_mb( current_pt, target_line_a, target_line_b, motion_blur_s, q_last, t_last ) ) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:146:13: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:146:13: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp: In instantiation of ‘static ceres::CostFunction* ceres_icp_point2line<_T>::Create(const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, Eigen::Matrix<_Scalar, 4, 1>, Eigen::Matrix<_Scalar, 3, 1>) [with _T = double]’:
/home/sylvain/catkin_ws/src/loam_livox/source/point_cloud_registration.hpp:316:79:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:299:13: warning: ‘new’ of type ‘ceres_icp_point2line<double>’ with extended alignment 32 [-Waligned-new=]
             new ceres_icp_point2line( current_pt, target_line_a, target_line_b, q_last, t_last ) ) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:299:13: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:299:13: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp: In instantiation of ‘static ceres::CostFunction* ceres_icp_point2plane_mb<_T>::Create(const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, _T, Eigen::Matrix<_Scalar, 4, 1>, Eigen::Matrix<_Scalar, 3, 1>) [with _T = double]’:
/home/sylvain/catkin_ws/src/loam_livox/source/point_cloud_registration.hpp:401:81:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:231:13: warning: ‘new’ of type ‘ceres_icp_point2plane_mb<double>’ with extended alignment 32 [-Waligned-new=]
             new ceres_icp_point2plane_mb( current_pt, target_line_a, target_line_b, target_line_c, motion_blur_s, q_last, t_last ) ) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:231:13: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:231:13: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp: In instantiation of ‘static ceres::CostFunction* ceres_icp_point2plane<_T>::Create(const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, const Eigen::Matrix<_Scalar, 3, 1>&, Eigen::Matrix<_Scalar, 4, 1>, Eigen::Matrix<_Scalar, 3, 1>) [with _T = double]’:
/home/sylvain/catkin_ws/src/loam_livox/source/point_cloud_registration.hpp:414:80:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:378:13: warning: ‘new’ of type ‘ceres_icp_point2plane<double>’ with extended alignment 32 [-Waligned-new=]
             new ceres_icp_point2plane( current_pt, target_line_a, target_line_b, target_line_c,  q_last, t_last ) ) );
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:378:13: note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
/home/sylvain/catkin_ws/src/loam_livox/source/ceres_icp.hpp:378:13: note: use ‘-faligned-new’ to enable C++17 over-aligned new support
In file included from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:65:0,
                 from /home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.cpp:37:
/home/sylvain/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp: In instantiation of ‘std::__cxx11::string Points_cloud_cell<DATA_TYPE>::to_json_string() [with DATA_TYPE = float; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/home/sylvain/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1511:19:   required from ‘std::__cxx11::string Maps_keyframe<DATA_TYPE>::to_json_string(int&) [with DATA_TYPE = float; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/home/sylvain/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:1543:34:   required from ‘void Maps_keyframe<DATA_TYPE>::save_to_file(const string&, const string&) [with DATA_TYPE = float; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/home/sylvain/catkin_ws/src/loam_livox/source/laser_mapping.hpp:975:98:   required from here
/home/sylvain/catkin_ws/src/loam_livox/source/cell_map_keyframe.hpp:150:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for ( unsigned i = 0; i < point_number; i++ )
                               ~~^~~~~~~~~~~~~~
loam_livox/CMakeFiles/livox_laserMapping.dir/build.make:62: recipe for target 'loam_livox/CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o' failed
make[2]: *** [loam_livox/CMakeFiles/livox_laserMapping.dir/source/laser_mapping.cpp.o] Error 1
CMakeFiles/Makefile2:1523: recipe for target 'loam_livox/CMakeFiles/livox_laserMapping.dir/all' failed
make[1]: *** [loam_livox/CMakeFiles/livox_laserMapping.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j12 -l12" failed
Doublehes commented 3 years ago

i met the same problem as yours, have you solved it yet?

sylvain0 commented 3 years ago

No 😐 I will share here if I fix this.

sylvain0 commented 3 years ago

Is this just a path error?

sylvain0 commented 3 years ago

I have upgraded to PCL 1.9 and it works

qianxingqx commented 3 years ago

Hello, my pcl version is 1.9.0, but I still met this problem, what's the previous pcl version of yours? Do you have any advice for me, thank you very much!

qianxingqx commented 3 years ago

Finally, I found that my error is about the ceres. My ceres version is 2.0.0, this version is too high, and when I degraded it to 1.14.0, I succeed!