I am unable to find_package any custom made message as of this morning. A new error message appears that I have never seen before. I have tried to remove, rebuild, remove more, rebuild, make a new super simple message package, rebuild, but nothing works. If I have my dependency foo and try to find it using find_package(foo REQUIRED) in my package bar, the following occurs:
# colcon build --packages-select foo bar
Starting >>> foo
Finished <<< foo [2.79s]
Starting >>> bar
--- stderr: bar
CMake Error at /colcon_ws/install/foo/share/foo/cmake/ament_cmake_export_targets-extras.cmake:18 (message):
Failed to find exported target names in
'/colcon_ws/install/foo/share/foo/cmake/foo__rosidl_generator_cExport.cmake'
Call Stack (most recent call first):
/colcon_ws/install/foo/share/foo/cmake/fooConfig.cmake:41 (include)
CMakeLists.txt:20 (find_package)
(CMakeLists.txt:20 is find_package(foo REQUIRED))
To reproduce, follow this tutorial. When you have built the interface package, make a basic ament_cmake package and try to find_package(your_new_package).
My setup is a little weird. I am running this in a docker image based on ros:foxy running on an M2 Macbook Air. That means docker is running with QEMU to emulate the aarch64 stuff going on inside docker. I am using the VirtioFS volume mounting to get my workspace into the docker images.
I am unable to
find_package
any custom made message as of this morning. A new error message appears that I have never seen before. I have tried to remove, rebuild, remove more, rebuild, make a new super simple message package, rebuild, but nothing works. If I have my dependencyfoo
and try to find it usingfind_package(foo REQUIRED)
in my packagebar
, the following occurs:(CMakeLists.txt:20 is
find_package(foo REQUIRED)
)To reproduce, follow this tutorial. When you have built the interface package, make a basic
ament_cmake
package and try tofind_package(your_new_package)
.My setup is a little weird. I am running this in a docker image based on
ros:foxy
running on an M2 Macbook Air. That means docker is running with QEMU to emulate the aarch64 stuff going on inside docker. I am using the VirtioFS volume mounting to get my workspace into the docker images.Verbose run
Any ideas?