You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build the complete ROS Jazzy for Debian creating the deb packages. I'm using the base of the packages in Debian made by Debian Robotics Team, backported to bookworm.
I'm blocked building builtin_interfaces. Why? Because in the configure step, CMake gives this error:
-- Found rosidl_adapter: 4.6.4 (/opt/ros/jazzy/share/rosidl_adapter/cmake)
CMake Error at /opt/ros/jazzy/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:57 (message):
execute_process(/usr/bin/python3 -m rosidl_adapter --package-name
builtin_interfaces --arguments-file
/<<PKGBUILDDIR>>/.obj-x86_64-linux-gnu/rosidl_adapter__arguments__builtin_interfaces.json
--output-dir
/<<PKGBUILDDIR>>/.obj-x86_64-linux-gnu/rosidl_adapter/builtin_interfaces
--output-file
/<<PKGBUILDDIR>>/.obj-x86_64-linux-gnu/rosidl_adapter/builtin_interfaces.idls)
returned error code 1:
/usr/bin/python3: No module named rosidl_adapter
Call Stack (most recent call first):
/opt/ros/jazzy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:132 (rosidl_adapt_interfaces)
CMakeLists.txt:19 (rosidl_generate_interfaces)
builtin-interface calls in CMakefile
# Depend on "core" generators instead of "default" generators
# because ROS actions depend on this package
find_package(rosidl_core_generators REQUIRED)
Then, rosidl_core_generators load rosidl_cmake-extras.cmake that has:
find_package(rosidl_adapter) # not required, being used when available
rosidl_adapter has rosidl_adapt_interfaces.cmake that has:
this function fails if rosidl_adapter is not in the PYTHONPATH.
In general it doesn't fails because we call this function with source /opt/ros/..... When we create a deb package, bloom insert in the rules:
override_dh_auto_configure:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/jazzy/setup.sh" ]; then . "/opt/ros/jazzy/setup.sh"; fi && \
dh_auto_configure -- \
-DCMAKE_INSTALL_PREFIX="/opt/ros/jazzy" \
-DAMENT_PREFIX_PATH="/opt/ros/jazzy" \
-DCMAKE_PREFIX_PATH="/opt/ros/jazzy" \
$(BUILD_TESTING_ARG)
However, building a package for debian with sbuild, we use a strict clean environment and /opt/ros/jazzy/setup.share not there, because they are not necessary.
If, I create a clean chroot replicating the same as sbuild and I make: source /opt/ros/jazzy/share/rosidl_adapter/local_setup.bash
it builds without any problem.
So, any idea of how to patch this code to make it work?
The text was updated successfully, but these errors were encountered:
Bug report
Operating System:
Debian Bookworm
Installation type:
Source
Version or commit hash:
4.6.4
DDS implementation:
Not applied
Client library (if applicable):
Not applied
I'm trying to build the complete ROS Jazzy for Debian creating the deb packages. I'm using the base of the packages in Debian made by Debian Robotics Team, backported to bookworm.
I'm blocked building builtin_interfaces. Why? Because in the configure step, CMake gives this error:
builtin-interface calls in CMakefile
Then, rosidl_core_generators load
rosidl_cmake-extras.cmake
that has:rosidl_adapter has
rosidl_adapt_interfaces.cmake
that has:this function fails if rosidl_adapter is not in the PYTHONPATH.
In general it doesn't fails because we call this function with
source /opt/ros/....
. When we create a deb package, bloom insert in the rules:However, building a package for debian with sbuild, we use a strict clean environment and
/opt/ros/jazzy/setup.sh
are not there, because they are not necessary.If, I create a clean chroot replicating the same as sbuild and I make:
source /opt/ros/jazzy/share/rosidl_adapter/local_setup.bash
it builds without any problem.
So, any idea of how to patch this code to make it work?
The text was updated successfully, but these errors were encountered: