From 33e76a75f0443292a505c8684e61c9067582aefe Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Fri, 17 Jan 2025 12:18:30 -0800 Subject: [PATCH 1/2] Ionic Ubuntu source install: rosdep instructions Add instructions for installing dependencies using rosdep. Signed-off-by: Steve Peters --- ionic/install_ubuntu_src.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ionic/install_ubuntu_src.md b/ionic/install_ubuntu_src.md index 312874a9a..05722627e 100644 --- a/ionic/install_ubuntu_src.md +++ b/ionic/install_ubuntu_src.md @@ -112,6 +112,19 @@ sudo apt -y install \ $(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ') ``` +Alternatively, if you want to install dependencies using +[rosdep](https://docs.ros.org/en/humble/Tutorials/Intermediate/Rosdep.html), +ensure that [rosdep is installed](https://docs.ros.org/en/humble/Tutorials/Intermediate/Rosdep.html#how-do-i-use-the-rosdep-tool) +and use the following command: + +```bash +cd ~/workspace/src +# gz-tools2 can build from source against both gz-cmake3 and gz-cmake4 +# this workspace has only gz-cmake4 +# the gz-tools2 package.xml only lists gz-cmake3, so use --skip-keys gz-cmake3 +rosdep install -i --from-path . --skip-keys gz-cmake3 +``` + ## Building the Gazebo Libraries Once the compiler and all the sources are in place it is time to compile them. From 2c2acdb8f71a82eefb9a5684d900cba074a54cfe Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Fri, 17 Jan 2025 13:53:16 -0800 Subject: [PATCH 2/2] Add more packages to --skip-keys Signed-off-by: Steve Peters --- ionic/install_ubuntu_src.md | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/ionic/install_ubuntu_src.md b/ionic/install_ubuntu_src.md index 05722627e..ef2a21115 100644 --- a/ionic/install_ubuntu_src.md +++ b/ionic/install_ubuntu_src.md @@ -119,12 +119,31 @@ and use the following command: ```bash cd ~/workspace/src -# gz-tools2 can build from source against both gz-cmake3 and gz-cmake4 -# this workspace has only gz-cmake4 -# the gz-tools2 package.xml only lists gz-cmake3, so use --skip-keys gz-cmake3 -rosdep install -i --from-path . --skip-keys gz-cmake3 +rosdep install -i --from-path . -y \ + --skip-keys "gz-cmake3 DART libogre-dev libogre-next-2.3-dev" ``` +The `rosdep` command attempts to install dependencies listed in `package.xml` +files, but when problems arise the `--skip-keys` argument is used. Explanations +for its use in the previous line are given below: + +* `gz-cmake3`: `gz-tools2` can build from source against + [both `gz-cmake3` and `gz-cmake4`](https://github.com/gazebosim/gz-tools/pull/128), + and this workspace only contains `gz-cmake4`. The `gz-tools2` `package.xml` + file only [depends on gz-cmake3](https://github.com/gazebosim/gz-tools/blob/2b228e5b956/package.xml#L13) + and since that package is not present, use `--skip-keys gz-cmake3`. +* `DART`: `gz-physics8` can build against [dartsim](http://dartsim.github.io), + which is listed as DART in the [gz-physics package.xml file](https://github.com/gazebosim/gz-physics/blob/gz-physics8_8.0.0/package.xml#L16). + This package is not in the workspace, so `DART` is added to the `--skip-keys` + string. + See the discussion in [gz-physics#608](https://github.com/gazebosim/gz-physics/pull/608#discussion_r1589512231) + for more background on the package name used for `DART`. +* `libogre-dev` and `libogre-next-2.3-dev`: `gz-rendering9` can build against + ogre 1.9 and ogre-next 2.3. The debian package names are listed as + dependencies in the [gz-rendering package.xml](https://github.com/gazebosim/gz-rendering/blob/gz-rendering9_9.0.0/package.xml#L22-L23) + but they are not available on all Linux versions, so work around with + `--skip-keys "libogre-dev libogre-next-2.3-dev"`. + ## Building the Gazebo Libraries Once the compiler and all the sources are in place it is time to compile them.