ethz-asl / voxblox

A library for flexible voxel-based mapping, mainly focusing on truncated and Euclidean signed distance fields.
BSD 3-Clause "New" or "Revised" License
1.37k stars 358 forks source link

build issue #414

Open wangjinhoon opened 9 months ago

wangjinhoon commented 9 months ago

Hello, When I try to do 'catkin build' on Ubuntu 16.04, I get the following error. Does anyone know how to resolve this?

Errors     << voxblox_ros:make /home/jh/catkin_ws/logs/voxblox_ros/build.make.011.log               
In file included from /home/jh/catkin_ws/src/voxblox/voxblox/include/voxblox/core/esdf_map.h:8:0,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/include/voxblox_ros/simulation_server.h:9,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:1:
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc: In member function ‘bool voxblox::SimulationServer::generatePlausibleViewpoint(voxblox::FloatingPoint, voxblox::Point*, voxblox::Point*) const’:
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:165:3: error: no matching function for call to ‘CheckNotNull(const char [68], int, const char [26], const std::unique_ptr<voxblox::SimulationWorld>&)’
   CHECK_NOTNULL(world_);
   ^
In file included from /home/jh/catkin_ws/src/voxblox/voxblox/include/voxblox/core/esdf_map.h:8:0,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/include/voxblox_ros/simulation_server.h:9,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:1:
/usr/include/glog/logging.h:1286:4: note: candidate: template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)
 T* CheckNotNull(const char *file, int line, const char *names, T* t) {
    ^
/usr/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/jh/catkin_ws/src/voxblox/voxblox/include/voxblox/core/esdf_map.h:8:0,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/include/voxblox_ros/simulation_server.h:9,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:1:
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:165:3: note:   mismatched types ‘T*’ and ‘std::unique_ptr<voxblox::SimulationWorld>’
   CHECK_NOTNULL(world_);
   ^
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc: In member function ‘void voxblox::SimulationServer::generateSDF()’:
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:221:5: error: no matching function for call to ‘CheckNotNull(const char [68], int, const char [26], std::unique_ptr<voxblox::SimulationWorld>&)’
     CHECK_NOTNULL(world_);
     ^
In file included from /home/jh/catkin_ws/src/voxblox/voxblox/include/voxblox/core/esdf_map.h:8:0,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/include/voxblox_ros/simulation_server.h:9,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:1:
/usr/include/glog/logging.h:1286:4: note: candidate: template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)
 T* CheckNotNull(const char *file, int line, const char *names, T* t) {
    ^
/usr/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/jh/catkin_ws/src/voxblox/voxblox/include/voxblox/core/esdf_map.h:8:0,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/include/voxblox_ros/simulation_server.h:9,
                 from /home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:1:
/home/jh/catkin_ws/src/voxblox/voxblox_ros/src/simulation_server.cc:221:5: note:   mismatched types ‘T*’ and ‘std::unique_ptr<voxblox::SimulationWorld>’
     CHECK_NOTNULL(world_);
     ^
make[2]: *** [CMakeFiles/voxblox_ros.dir/src/simulation_server.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/voxblox_ros.dir/all] Error 2
make: *** [all] Error 2