Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using catkin_make_isolated --install --use-ninja for cartographer #1954

Open
samuka222 opened this issue Feb 26, 2024 · 1 comment
Open

using catkin_make_isolated --install --use-ninja for cartographer #1954

samuka222 opened this issue Feb 26, 2024 · 1 comment

Comments

@samuka222
Copy link

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:

message_generationConfig.cmake
message_generation-config.cmake

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

@Dami-18
Copy link

Dami-18 commented May 25, 2024

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/connected_components.h:75:32: error: ‘lock_’ has not been declared
75 | EXCLUSIVE_LOCKS_REQUIRED(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_LOCKS_REQUIRED(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_LOCKS_REQUIRED(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_LOCKS_REQUIRED(lock_);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:80:22: error: expected ‘;’ at end of member declaration
80 | std::map<int, int> forest_ GUARDED_BY(lock_);
| ^~~~~~~
| ;
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:80:41: error: ‘lock_’ is not a type
80 | std::map<int, int> forest_ GUARDED_BY(lock_);
| ^~~~~
/home/vboxuser/catkin_ws5/src/cartographer/cartographer/mapping/internal/connected_components.h:80:46: error: ISO C++ forbids declaration of ‘GUARDED_BY’ with no type [-fpermissive]
80 | std::map<int, int> forest_ GUARDED_BY(lock_);
| ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants