Build error: voxblox_skeleton/src/io/skeleton_io.cpp
varunk122 opened this issue · 1 comments
varunk122 commented
When building the package, this strange error appears. There seems to be something wrong with the code, but I'm not sure.
/home/giuseppe/catkin_ws_airMPL_Simulator/src/mav_voxblox_planning/voxblox_skeleton/src/io/skeleton_io.cpp: In function ‘bool voxblox::io::loadSparseSkeletonGraphFromFile(const string&, voxblox::SparseSkeletonGraph*)’:
/home/giuseppe/catkin_ws_airMPL_Simulator/src/mav_voxblox_planning/voxblox_skeleton/src/io/skeleton_io.cpp:72:75: error: cannot convert ‘uint32_t* {aka unsigned int*}’ to ‘uint64_t* {aka long unsigned int*}’ for argument ‘3’ to ‘bool voxblox::utils::readProtoMsgFromStream(std::fstream*, google::protobuf::Message*, uint64_t*)’
if (!utils::readProtoMsgFromStream(&proto_file, &proto, &tmp_byte_offset)) {
^
make[2]: *** [CMakeFiles/voxblox_skeleton.dir/src/io/skeleton_io.cpp.o] Error 1
make[1]: *** [CMakeFiles/voxblox_skeleton.dir/all] Error 2
varunk122 commented
FIX: change the code in line 69 from uint32_t tmp_byte_offset = 0; to uint64_t tmp_byte_offset = 0; [file : - mav_voxblox_planning/voxblox_skeleton/src/io/skeleton_io.cpp]