@@ -119,12 +119,31 @@ and use the following command:
119
119
120
120
``` bash
121
121
cd ~ /workspace/src
122
- # gz-tools2 can build from source against both gz-cmake3 and gz-cmake4
123
- # this workspace has only gz-cmake4
124
- # the gz-tools2 package.xml only lists gz-cmake3, so use --skip-keys gz-cmake3
125
- rosdep install -i --from-path . --skip-keys gz-cmake3
122
+ rosdep install -i --from-path . -y \
123
+ --skip-keys " gz-cmake3 DART libogre-dev libogre-next-2.3-dev"
126
124
```
127
125
126
+ The ` rosdep ` command attempts to install dependencies listed in ` package.xml `
127
+ files, but when problems arise the ` --skip-keys ` argument is used. Explanations
128
+ for its use in the previous line are given below:
129
+
130
+ * ` gz-cmake3 ` : ` gz-tools2 ` can build from source against
131
+ [ both ` gz-cmake3 ` and ` gz-cmake4 ` ] ( https://github.com/gazebosim/gz-tools/pull/128 ) ,
132
+ and this workspace only contains ` gz-cmake4 ` . The ` gz-tools2 ` ` package.xml `
133
+ file only [ depends on gz-cmake3] ( https://github.com/gazebosim/gz-tools/blob/2b228e5b956/package.xml#L13 )
134
+ and since that package is not present, use ` --skip-keys gz-cmake3 ` .
135
+ * ` DART ` : ` gz-physics8 ` can build against [ dartsim] ( http://dartsim.github.io ) ,
136
+ 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 ) .
137
+ This package is not in the workspace, so ` DART ` is added to the ` --skip-keys `
138
+ string.
139
+ See the discussion in [ gz-physics #608 ] ( https://github.com/gazebosim/gz-physics/pull/608#discussion_r1589512231 )
140
+ for more background on the package name used for ` DART ` .
141
+ * ` libogre-dev ` and ` libogre-next-2.3-dev ` : ` gz-rendering9 ` can build against
142
+ ogre 1.9 and ogre-next 2.3. The debian package names are listed as
143
+ dependencies in the [ gz-rendering package.xml] ( https://github.com/gazebosim/gz-rendering/blob/gz-rendering9_9.0.0/package.xml#L22-L23 )
144
+ but they are not available on all Linux versions, so work around with
145
+ ` --skip-keys "libogre-dev libogre-next-2.3-dev" ` .
146
+
128
147
## Building the Gazebo Libraries
129
148
130
149
Once the compiler and all the sources are in place it is time to compile them.
0 commit comments