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

compilation failed: By not providing "Findeigen_stl_containers.cmake" in CMAKE_MODULE_PATH #3053

Open
whbo158 opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@whbo158
Copy link

whbo158 commented Nov 1, 2024

Description

Hi Moveit owner,

I try to compile ROS2 and moveit2 on ubuntu-v24.04(aarch64),
ROS2_jazzy has been compiled successfully, it's also working well,
but moveit2 failed, refer to the steps in https://moveit.ai/install-moveit2/source/.
I have run the command "source ~/ros2_jazzy/install/local_setup.bash".

it reports the following compilation error:

root@ubuntu:/ws_moveit2/src# rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
#All required rosdeps installed successfully
root@ubuntu:
/ws_moveit2/src# sudo apt install ros-$ROS_DISTRO-rmw-cyclonedds-cpp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ros-jazzy-rmw-cyclonedds-cpp is already the newest version (2.2.2-1noble.20240922.082552).
The following packages were automatically installed and are no longer required:
ros-jazzy-actionlib-msgs ros-jazzy-common-interfaces ros-jazzy-geometric-shapes ros-jazzy-gz-cmake-vendor ros-jazzy-gz-math-vendor ros-jazzy-gz-utils-vendor
ros-jazzy-image-transport ros-jazzy-interactive-markers ros-jazzy-kdl-parser ros-jazzy-laser-geometry ros-jazzy-libcurl-vendor ros-jazzy-map-msgs ros-jazzy-nav-msgs
ros-jazzy-point-cloud-transport ros-jazzy-resource-retriever ros-jazzy-rviz-assimp-vendor ros-jazzy-rviz-common ros-jazzy-rviz-default-plugins
ros-jazzy-rviz-ogre-vendor ros-jazzy-rviz-rendering ros-jazzy-rviz2 ros-jazzy-sensor-msgs-py ros-jazzy-srdfdom ros-jazzy-std-srvs ros-jazzy-stereo-msgs
ros-jazzy-tf2-eigen ros-jazzy-tf2-eigen-kdl ros-jazzy-tf2-kdl ros-jazzy-visualization-msgs ros-jazzy-yaml-cpp-vendor
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ubuntu:/ws_moveit2/src# export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
root@ubuntu:
/ws_moveit2/src#
root@ubuntu:/ws_moveit2/src# cd $COLCON_WS
root@ubuntu:
/ws_moveit2# colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release
Starting >>> moveit_resources_panda_description
0;colcon build [0/51 done] [1 ongoing]Starting >>> moveit_resources_pr2_description
0;colcon build [0/51 done] [2 ongoing]Finished <<< moveit_resources_pr2_description [6.77s]
0;colcon build [1/51 done] [1 ongoing]Starting >>> srdfdom
0;colcon build [1/51 done] [2 ongoing]Finished <<< moveit_resources_panda_description [7.13s]
0;colcon build [2/51 done] [1 ongoing]Starting >>> moveit_resources_panda_moveit_config
0;colcon build [2/51 done] [2 ongoing]Finished <<< moveit_resources_panda_moveit_config [6.44s]
0;colcon build [3/51 done] [1 ongoing]Starting >>> geometric_shapes
--- stderr: geometric_shapes
CMake Error at CMakeLists.txt:44 (find_package):
By not providing "Findeigen_stl_containers.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"eigen_stl_containers", but CMake did not find one.

Could not find a package configuration file provided by
"eigen_stl_containers" with any of the following names:

eigen_stl_containersConfig.cmake
eigen_stl_containers-config.cmake

Add the installation prefix of "eigen_stl_containers" to CMAKE_PREFIX_PATH
or set "eigen_stl_containers_DIR" to a directory containing one of the
above files. If "eigen_stl_containers" provides a separate development
package or SDK, be sure it has been installed.


Failed <<< geometric_shapes [4.51s, exited with code 1]
0;colcon build [3/51 done] [2 ongoing]0;colcon build [4/51 done] [1 ongoing]Aborted <<< srdfdom [2min 19s]
0;colcon build [5/51 done] [0 ongoing]
Summary: 3 packages finished [2min 29s]
1 package failed: geometric_shapes
1 package aborted: srdfdom
2 packages had stderr output: geometric_shapes srdfdom
46 packages not processed

How can I fix it?
Thanks in advance!

ROS Distro

Jazzy

OS and version

Ubuntu 24.04 for arm64

Source or binary build?

Source

If binary, which release version?

No response

If source, which branch?

No response

Which RMW are you using?

CycloneDDS

Steps to Reproduce

https://moveit.ai/install-moveit2/source/

sudo apt update
sudo apt dist-upgrade
rosdep update

sudo apt install -y wget build-essential cmake git python3-colcon-common-extensions python3-flake8 python3-rosdep python3-setuptools python3-vcstool

source ~/ros2_jazzy/install/local_setup.bash

echo $ROS_DISTRO

sudo apt remove ros-$ROS_DISTRO-moveit*

export COLCON_WS=~/ws_moveit2/
mkdir -p $COLCON_WS/src
cd $COLCON_WS/src

git clone https://github.com/moveit/moveit2.git -b main

for repo in moveit2/moveit2.repos $(f="moveit2/moveit2_$ROS_DISTRO.repos"; test -r $f && echo $f); do vcs import < "$repo"; done

rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y

  1. Middleware
    sudo apt install ros-$ROS_DISTRO-rmw-cyclonedds-cpp
    export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

  2. Build MoveIt
    cd $COLCON_WS
    colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release

Expected behavior

compile successfully

Actual behavior

compile failed

Backtrace or Console output

No response

@whbo158 whbo158 added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant