Skip to content

Commit

Permalink
fix cpp api tutorial
Browse files Browse the repository at this point in the history
Signed-off-by: Van Malleghem Antoine <antoine.vanmalleghem@botronics.be>
  • Loading branch information
avanmalleghem committed Sep 3, 2024
1 parent 04f0a04 commit d897b85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tutorials/04_cpp_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ this tutorial:
mkdir /tmp/fuel_tutorial && cd /tmp/fuel_tutorial
```

Install compilation prerequisites:

```bash
sudo apt-get install libgflags-dev
```

Download the files `list.cc`, `details.cc`, `download.cc`,
`CMakeLists.txt`, and save them under `/tmp/fuel_tutorial`:

Expand Down Expand Up @@ -172,7 +178,7 @@ for (const auto &server : client.Config().Servers())
id.SetServer(server);

gz::fuel_tools::ModelIdentifier model;
if (!client.ModelDetails(server, id, model))
if (!client.ModelDetails(id, model))
continue;

std::cout << model.AsPrettyString() << std::endl;
Expand Down

0 comments on commit d897b85

Please sign in to comment.