Skip to content

Remove tinyxml2 vendor on rolling#1135

Open
mini-1235 wants to merge 2 commits intoBehaviorTree:masterfrom
mini-1235:fix/tinyxml2
Open

Remove tinyxml2 vendor on rolling#1135
mini-1235 wants to merge 2 commits intoBehaviorTree:masterfrom
mini-1235:fix/tinyxml2

Conversation

@mini-1235
Copy link
Copy Markdown

In Nav2, we are building BT.CPP from source temporarily, however, we are failing to build now:

#20 2.012 Get:20 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.0 kB]
#20 2.013 Get:21 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Packages [671 B]
#20 2.013 Get:22 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [35.6 kB]
#20 3.087 Fetched 41.5 MB in 3s (14.2 MB/s)
#20 3.087 Reading package lists...
#20 4.120 /usr/bin/rosdep:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
#20 4.120   from pkg_resources import load_entry_point
#20 5.248 ERROR: the following packages/stacks could not have their rosdep keys resolved
#20 5.248 to system dependencies:
#20 5.248 behaviortree_cpp: No definition of [tinyxml2_vendor] for OS version [noble]
#20 ERROR: process "/bin/sh -c . /opt/ros/$ROS_DISTRO/setup.sh &&     apt-get update && rosdep install -q -y       --from-paths src       --skip-keys \"         slam_toolbox         \"       --ignore-src     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1
------
 > [builder  6/11] RUN . /opt/ros/rolling/setup.sh &&     apt-get update && rosdep install -q -y       --from-paths src       --skip-keys "         slam_toolbox         "       --ignore-src     && rm -rf /var/lib/apt/lists/*:
2.012 Get:19 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [54.1 kB]
2.012 Get:20 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.0 kB]
2.013 Get:21 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Packages [671 B]
2.013 Get:22 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [35.6 kB]

4.120 /usr/bin/rosdep:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
4.120   from pkg_resources import load_entry_point
5.248 ERROR: the following packages/stacks could not have their rosdep keys resolved
5.248 to system dependencies:
5.248 behaviortree_cpp: No definition of [tinyxml2_vendor] for OS version [noble]
------

I believe this is because tinyxml2_vendor is deprecated and removed on rolling, so I am removing this in rolling.

ref: https://github.com/open-planning/roboplan/blob/6987faf083d5b097b4251f8f698a1a7832c3ac86/roboplan/package.xml#L15-L16

Signed-off-by: Maurice <mauricepurnawan@gmail.com>
Signed-off-by: Maurice <mauricepurnawan@gmail.com>
@mini-1235
Copy link
Copy Markdown
Author

mini-1235 commented Apr 29, 2026

It looks like the issue is also due to rolling moved to Ubuntu Resolute, this causes issue when running rosdep on Noble. But I still think this PR is useful, since tinyxml2_vendor is expected to be removed in the future (if I remember correctly, around the Lyrical release)

CMake Deprecation Warning at /opt/ros/rolling/share/tinyxml2_vendor/cmake/tinyxml2_vendorConfig.cmake:34 (message):
  Package 'tinyxml2_vendor' is deprecated (This package will be removed in
  ROS 2 Lyrical Luth.  Instead, use

        distributed package which provides same functionality.)
Call Stack (most recent call first):

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

Successfully merging this pull request may close these issues.

1 participant