Skip to content

Commit

Permalink
fix cpp api tutorial (#444)
Browse files Browse the repository at this point in the history
Signed-off-by: Van Malleghem Antoine <[email protected]>
  • Loading branch information
avanmalleghem authored Sep 4, 2024
1 parent d8e5fae commit 580755d
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 580755d

Please sign in to comment.