Open samuka222 opened 9 months ago
I am installing cartographer on Ubuntu 20.04 and ROS noetic version. Even I am facing errors while building the package. I am getting error messages like these. How do I resolve this?
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connectedcomponents.h:75:32: error: ‘lock’ has not been declared
75 | EXCLUSIVE_LOCKSREQUIRED(lock);
| ^~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:75:37: error: ISO C++ forbids declaration of ‘EXCLUSIVE_LOCKS_REQUIRED’ with no type [-fpermissive]
75 | EXCLUSIVE_LOCKSREQUIRED(lock);
| ^
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:75:7: error: ‘int cartographer::mapping::ConnectedComponents::EXCLUSIVE_LOCKS_REQUIRED(int)’ cannot be overloaded with ‘int cartographer::mapping::ConnectedComponents::EXCLUSIVE_LOCKS_REQUIRED(int)’
75 | EXCLUSIVE_LOCKSREQUIRED(lock);
| ^~~~~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:73:34: note: previous declaration ‘int cartographer::mapping::ConnectedComponents::EXCLUSIVE_LOCKS_REQUIRED(int)’
73 | int FindSet(int trajectory_id) EXCLUSIVE_LOCKSREQUIRED(lock);
| ^~~~~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connectedcomponents.h:80:22: error: expected ‘;’ at end of member declaration
80 | std::map<int, int> forest GUARDEDBY(lock);
| ^~~
| ;
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connectedcomponents.h:80:41: error: ‘lock’ is not a type
80 | std::map<int, int> forest_ GUARDEDBY(lock);
| ^~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:80:46: error: ISO C++ forbids declaration of ‘GUARDEDBY’ with no type [-fpermissive]
80 | std::map<int, int> forest GUARDEDBY(lock);
| ^
When using , i get this :
[CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package): Could not find a package configuration file provided by "message_generation" with any of the following names:
Add the installation prefix of "message_generation" to CMAKE_PREFIX_PATH or set "message_generation_DIR" to a directory containing one of the above files. If "message_generation" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:24 (find_package)
-- Configuring incomplete, errors occurred! See also "/root/catkin_ws/build_isolated/cartographer_ros_msgs/CMakeFiles/CMakeOutput.log". <== Failed to process package 'cartographer_ros_msgs': Command '['/root/catkin_ws/install_isolated/env.sh', 'cmake', '/root/catkin_ws/src/cartographer_ros/cartographer_ros_msgs', '-DCATKIN_DEVEL_PREFIX=/root/catkin_ws/devel_isolated/cartographer_ros_msgs', '-DCMAKE_INSTALL_PREFIX=/root/catkin_ws/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1.
Reproduce this error by running: ==> cd /root/catkin_ws/build_isolated/cartographer_ros_msgs && /root/catkin_ws/install_isolated/env.sh cmake /root/catkin_ws/src/cartographer_ros/cartographer_ros_msgs -DCATKIN_DEVEL_PREFIX=/root/catkin_ws/devel_isolated/cartographer_ros_msgs -DCMAKE_INSTALL_PREFIX=/root/catkin_ws/install_isolated -G Ninja
Command failed, exiting. ]
how do i solve this issue