Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document missing SUMO libraries #6232

Closed
wants to merge 9 commits into from
10 changes: 10 additions & 0 deletions docs/automobile/sumo-exporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ The SUMO exporter can create SUMO network files from a Webots simulation.
The SUMO exporter is using the `shapely` Python module.
Please refer to [these instructions](openstreetmap-importer.md#dependencies) to install it.

### Linux

On Linux, you also need to install `libgdal` and `libfox` to run the SUMO `netconvert` and `duarouter` binaries.

On Ubuntu 22.04, please run this command:
```sh
sudo apt install libgdal30 libfox-1.6-0
```
On Ubuntu 20.04, `libdgal30` is not available and you have to install the previous version `libgdal26` instead.

## Expectations on the Webots Simulation

If the Webots simulation has been created from the OpenStreetMap importer, then the export should be straight forward.
Expand Down
11 changes: 8 additions & 3 deletions docs/guide/installation-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,16 @@ Execute the following command to install *ffmpeg* with *x264* support:
```bash
conda install x264 ffmpeg -c conda-forge
```
For SUMO, you will need to install libxerces-c-devel, libproj-devel, libgdal-devel, and fox16-devel.
Execute the following commands to enable SUMO on Debian / Ubuntu based distributions:
For SUMO, you will need to install `libxerces-c`, `libfox`, `libgdal`, `libproj`, and `libgl2ps`.
Execute the following commands to enable SUMO Ubuntu 22.04:
```bash
sudo apt-get install libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev
sudo apt-get install libxerces-c3.2 libfox-1.6-0 libgdal30 libproj22 libgl2ps1.4
```
And this command for Ubuntu 20.04:
```bash
sudo apt-get install libxerces-c3.2 libfox-1.6-0 libgdal26 libproj15 libgl2ps1.4
```


#### Installing the Snap Package

Expand Down
2 changes: 1 addition & 1 deletion scripts/packaging/linux_distro.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def create_debian_bundle(self):
"libglib2.0-0 (>= 2.10.0), libegl1, libglu1-mesa | libglu1, libgtk-3-0, "
"libnss3, libstdc++6 (>= 4.0.2-4), libxaw7, libxrandr2, libxrender1, "
"libssh-dev, libzip-dev, xserver-xorg-core, libxslt1.1, "
"libxerces-c-dev, libfox-1.6-dev, libgdal-dev, libproj-dev, libgl2ps-dev, " # SUMO dependencies
"libxerces-c3.2, libfox-1.6-0, libgdal-dev, libproj-dev, libgl2ps1.4, " # SUMO dependencies
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept libgdal-devand libproj-dev just because the version changed in Ubuntu 22.04 and this way the version is managed automatically by the packaging tool.

"libfreetype6, libxkbcommon-x11-0, libxcb-keysyms1, libxcb-image0, libxcb-icccm4, "
"libxcb-randr0, libxcb-render-util0, libxcb-xinerama0\n"
"Conflicts: webots-for-nao\n"
Expand Down
Loading