/home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp: In member function ‘void octomap::SuperRayGenerator::GenerateSuperRay2D(const point3d_collection&, octomap::SuperRayGenerator::Axis3D&, octomap::SuperRayGenerator::VoxelInfo&, std::vector<octomap::SuperRay>&)’:
/home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp:157:22: error: implicitly-declared ‘octomap::SuperRay& octomap::SuperRay::operator=(const octomap::SuperRay&)’ is deprecated [-Werror=deprecated-copy]
157 | superrays[idx] = sr; // Create a new super ray
| ^~
In file included from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRayCloud.h:35,
from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRayGenerator.h:36,
from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp:30:
/home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRay.h:41:3: note: because ‘octomap::SuperRay’ has user-provided ‘octomap::SuperRay::SuperRay(const octomap::SuperRay&)’
41 | SuperRay(const SuperRay& _other) : p(_other.p), w(_other.w) {}
| ^~~~~~~~
/home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp: In member function ‘void octomap::SuperRayGenerator::GenerateSuperRay3D(const point3d_collection&, octomap::SuperRayGenerator::Axis3D&, octomap::SuperRayGenerator::VoxelInfo&, std::vector<octomap::SuperRay>&)’:
/home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp:239:24: error: implicitly-declared ‘octomap::SuperRay& octomap::SuperRay::operator=(const octomap::SuperRay&)’ is deprecated [-Werror=deprecated-copy]
239 | superrays[index] = sr; // Create a new super ray
| ^~
In file included from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRayCloud.h:35,
from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRayGenerator.h:36,
from /home/xzc/RL_ITG_ws/src/SuperRay/octomap/src/SuperRayGenerator.cpp:30:
/home/xzc/RL_ITG_ws/src/SuperRay/octomap/include/octomap_superray/SuperRay.h:41:3: note: because ‘octomap::SuperRay’ has user-provided ‘octomap::SuperRay::SuperRay(const octomap::SuperRay&)’
41 | SuperRay(const SuperRay& _other) : p(_other.p), w(_other.w) {}
| ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [octomap/src/CMakeFiles/octomap.dir/build.make:193: octomap/src/CMakeFiles/octomap.dir/SuperRayGenerator.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1315: octomap/src/CMakeFiles/octomap.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
I'm using ROS-Noetic and successfully build octomap lib with the 1.9.7 version in the same workspace.