Livox-SDK / livox_camera_lidar_calibration

Calibrate the extrinsic parameters between Livox LiDAR and camera
Other
495 stars 137 forks source link

Compile Error #9

Closed KelvinTsoi closed 4 years ago

KelvinTsoi commented 4 years ago
In file included from /usr/include/c++/5/backward/hash_map:60:0,
                 from /home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/color_lidar_display.cpp:8:
/usr/include/c++/5/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^
/home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/projectCloud.cpp: In function ‘void loadPointcloudFromROSBag(const string&)’:
/home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/projectCloud.cpp:52:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (lidar_datas.size() > (threshold_lidar/24000 + 1)) {
                                ^
In file included from /usr/local/include/ceres/internal/autodiff.h:153:0,
                 from /usr/local/include/ceres/autodiff_cost_function.h:130,
                 from /usr/local/include/ceres/ceres.h:37,
                 from /home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/cam_lid_external1.cpp:3:
/usr/local/include/ceres/jet.h:998:8: error: ‘ScalarBinaryOpTraits’ is not a class template
 struct ScalarBinaryOpTraits<ceres::Jet<T, N>, T, BinaryOp> {
        ^
/usr/local/include/ceres/jet.h:1002:58: error: type/value mismatch at argument 3 in template parameter list for ‘template<class BinaryOp, class T, int N> struct Eigen::ScalarBinaryOpTraits’
 struct ScalarBinaryOpTraits<T, ceres::Jet<T, N>, BinaryOp> {
                                                          ^
/usr/local/include/ceres/jet.h:1002:58: note:   expected a constant of type ‘int’, got ‘BinaryOp’
In file included from /home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/color_lidar_display.cpp:18:0:
/usr/include/pcl-1.7/pcl/visualization/cloud_viewer.h:202:14: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
         std::auto_ptr<CloudViewer_impl> impl_;
              ^
In file included from /usr/include/c++/5/bits/locale_conv.h:41:0,
                 from /usr/include/c++/5/locale:43,
                 from /usr/include/c++/5/iomanip:43,
                 from /usr/include/boost/math/policies/error_handling.hpp:12,
                 from /usr/include/boost/math/special_functions/round.hpp:14,
                 from /opt/ros/kinetic/include/ros/time.h:58,
                 from /opt/ros/kinetic/include/ros/ros.h:38,
                 from /home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/color_lidar_display.cpp:1:
/usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^
/home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/color_lidar_display.cpp: In function ‘void loadPointcloudFromROSBag(const string&)’:
/home/kevintsoi/github/cal_livox/src/livox_camera_lidar_calibration/src/color_lidar_display.cpp:53:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (lidar_datas.size() > threshold_lidar) {
KelvinTsoi commented 4 years ago

Have changed to the released version, fixed.