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

Cmake Error when I complied at my ros2 workspace #1

Open
louis1218 opened this issue Oct 10, 2022 · 2 comments
Open

Cmake Error when I complied at my ros2 workspace #1

louis1218 opened this issue Oct 10, 2022 · 2 comments

Comments

@louis1218
Copy link

louis1218 commented Oct 10, 2022

I tried compiling this pepper_meshes2 package cloned in my ros2 workspace and colcon build it. I received the following error.

CMake Error at ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:100 (message):
ament_cmake_symlink_install_directory() can't find
'/home/crossing/ws/install/pepper_meshes/share/pepper_meshes/tmp/meshes'
Call Stack (most recent call first):
ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:356 (ament_cmake_symlink_install_directory)
cmake_install.cmake:46 (include)

I have tried it in ros2 humble and foxy and still received the same error.

My compiling steps:

  1. Git clone this repository to my ros2 workspace/src folder
  2. Enter the command of colcon build --symlink-install
  3. I received the error

Do you reckon any steps I am missing?

Thank you.

@mbusy
Copy link
Member

mbusy commented Oct 12, 2022

Hey @manhim1218 , I think that the symlink install might be responsible here. Could you try a simple build without a symlink install?

Regarding the distros, I tested the build against Foxy and Galactic, not Humble (it shouldn't make much of a difference though)

@effibot
Copy link

effibot commented Jul 7, 2023

I have tried to compile the package in ROS2 Foxy, with colcon build and colcon build --merge-install, the error is the same:

> colcon build
Starting >>> pepper_meshes
--- stderr: pepper_meshes                           
CMake Error at cmake_install.cmake:134 (file):
  file INSTALL cannot find
  "/home/ros/colcon_ws/install/share/pepper_meshes/tmp/meshes": No such file
  or directory.
---
Failed   <<< pepper_meshes [0.10s, exited with code 1]

Summary: 0 packages finished [0.26s]
  1 package failed: pepper_meshes
  1 package had stderr output: pepper_meshes

This is the output of ls -l for /home/ros/colcon_ws/install/share/pepper_meshes

drwxr-xr-x 2 ros ros 4096 Jul  7 09:50 cmake
drwxr-xr-x 2 ros ros 4096 Jul  7 09:50 environment
-rw-r--r-- 1 ros ros 1594 Jul  7 09:46 local_setup.bash
-rw-r--r-- 1 ros ros  107 Jul  7 09:46 local_setup.dsv
-rw-r--r-- 1 ros ros 3797 Jul  7 09:46 local_setup.sh
-rw-r--r-- 1 ros ros 1957 Jul  7 09:46 local_setup.zsh
-rw-r--r-- 1 ros ros  172 Jul  7 09:46 package.dsv
-rw-r--r-- 1 ros ros  791 Jul  7 09:46 package.xml```

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

3 participants