HesaiTechnology / Pandar40_SDK

Development kit for Pandar40
BSD 2-Clause "Simplified" License
20 stars 13 forks source link

Compilation problem #13

Open peterlee909 opened 4 years ago

peterlee909 commented 4 years ago

Hi, there is a compilation error while doing this command: mkdir build cd build cmake .. -DENABLE_SAMPLE=ON

Scanning dependencies of target pandar40p [ 82%] Building CXX object sample/pandar40p/CMakeFiles/pandar40p.dir/pandar40p.cc.o /home/cat/Peter/lidarPlugin/HesaiLidarSDK/sample/pandar40p/pandar40p.cc: In function ?龝oid lidarCallback(boost::shared_ptr<pcl::PointCloud >, double)?? /home/cat/Peter/lidarPlugin/HesaiLidarSDK/sample/pandar40p/pandar40p.cc:10:75: warning: format ??d??expects argument of type ?鹛nt?? but argument 3 has type ?鼡td::vector<pandar_pointcloud::PointXYZIT, Eigen::aligned_allocator >::size_type {aka long unsigned int}??[-Wformat=] printf("lidar: time %lf , points %d\n", timestamp , cld->points.size());


/home/cat/Peter/lidarPlugin/HesaiLidarSDK/sample/pandar40p/pandar40p.cc: In function ?鹛nt main(int, char**)??
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/sample/pandar40p/pandar40p.cc:24:2: error: no matching function for call to ?➑esaiLidarSDK::HesaiLidarSDK(int, int, std::__cxx11::string, void (&)(boost::shared_ptr<pcl::PointCloud<pandar_pointcloud::PointXYZIT> >, double), void (&)(int), HesaiLidarRawDataSturct, int, HesaiLidarPCLDataType)??
  );
  ^
In file included from /home/cat/Peter/lidarPlugin/HesaiLidarSDK/sample/pandar40p/pandar40p.cc:1:0:
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:75:2: note: candidate: HesaiLidarSDK::HesaiLidarSDK()
  HesaiLidarSDK(){};
  ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:75:2: note:   candidate expects 0 arguments, 8 provided
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:67:2: note: candidate: HesaiLidarSDK::HesaiLidarSDK(std::__cxx11::string, std::__cxx11::string, HesaiLidarRawDataSturct, unsigned int, HesaiLidarPCLDataType, boost::function<void(boost::shared_ptr<pcl::PointCloud<pandar_pointcloud::PointXYZIT> >, double)>)
  HesaiLidarSDK(
  ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:67:2: note:   candidate expects 6 arguments, 8 provided
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:55:2: note: candidate: HesaiLidarSDK::HesaiLidarSDK(short unsigned int, short unsigned int, double, std::__cxx11::string, boost::function<void(boost::shared_ptr<pcl::PointCloud<pandar_pointcloud::PointXYZIT> >, double)>, boost::function<void(unsigned int)>, HesaiLidarRawDataSturct, unsigned int, HesaiLidarPCLDataType)
  HesaiLidarSDK(
  ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:55:2: note:   candidate expects 9 arguments, 8 provided
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:47:2: note: candidate: HesaiLidarSDK::HesaiLidarSDK(std::__cxx11::string, short unsigned int, boost::function<void(boost::shared_ptr<cv::Mat>, double, int)>, boost::function<void(boost::shared_ptr<pcl::PointCloud<pandar_pointcloud::PointXYZIT> >, double)>)
  HesaiLidarSDK(
  ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:47:2: note:   candidate expects 4 arguments, 8 provided
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:30:2: note: candidate: HesaiLidarSDK::HesaiLidarSDK(std::__cxx11::string, short unsigned int, std::__cxx11::string, boost::function<void(boost::shared_ptr<cv::Mat>, double, int)>, short unsigned int, short unsigned int, double, std::__cxx11::string, boost::function<void(boost::shared_ptr<pcl::PointCloud<pandar_pointcloud::PointXYZIT> >, double)>, boost::function<void(unsigned int)>, HesaiLidarRawDataSturct, unsigned int, HesaiLidarPCLDataType)
  HesaiLidarSDK(
  ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:30:2: note:   candidate expects 13 arguments, 8 provided
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:26:7: note: candidate: constexpr HesaiLidarSDK::HesaiLidarSDK(const HesaiLidarSDK&)
 class HesaiLidarSDK
       ^~~~~~~~~~~~~
/home/cat/Peter/lidarPlugin/HesaiLidarSDK/include/hesaiLidarSDK.h:26:7: note:   candidate expects 1 argument, 8 provided
sample/pandar40p/CMakeFiles/pandar40p.dir/build.make:62: recipe for target 'sample/pandar40p/CMakeFiles/pandar40p.dir/pandar40p.cc.o' failed
make[2]: *** [sample/pandar40p/CMakeFiles/pandar40p.dir/pandar40p.cc.o] Error 1
CMakeFiles/Makefile2:272: recipe for target 'sample/pandar40p/CMakeFiles/pandar40p.dir/all' failed
make[1]: *** [sample/pandar40p/CMakeFiles/pandar40p.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

There is some errors in pandar40p.
Could you please help me to deal with the problem?
thank you so much!
yangfanFred commented 4 years ago

Hi Peter, We will lookinto this issue, what system version and compiler version are you using?