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

fix cpp api tutorial #444

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading