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

Add a C++ quick-start to the viewer #3961

Merged
merged 11 commits into from
Oct 24, 2023
Merged

Add a C++ quick-start to the viewer #3961

merged 11 commits into from
Oct 24, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 23, 2023

What

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@emilk emilk added 📖 documentation Improvements or additions to documentation examples Issues relating to the Rerun examples 🌊 C++ API C/C++ API specific exclude from changelog PRs with this won't show up in CHANGELOG.md labels Oct 23, 2023

```cmake
include(FetchContent)
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/06dd483/rerun_cpp_sdk.zip) # 2023-10-20
Copy link
Member Author

Choose a reason for hiding this comment

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

Obviously we'll have to update this before the release. I've added a TODO to #3962

@Wumpf Wumpf self-requested a review October 23, 2023 14:42

```cmake
include(FetchContent)
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/06dd483/rerun_cpp_sdk.zip) # 2023-10-20
Copy link
Member

@teh-cmc teh-cmc Oct 23, 2023

Choose a reason for hiding this comment

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

Suggested change
FetchContent_Declare(rerun_sdk URL https://build.rerun.io/commit/06dd483/rerun_cpp_sdk.zip) # 2023-10-20
FetchContent_Declare(rerun_sdk URL https://github.com/rerun-io/rerun/releases/latest/download/rerun_cpp_sdk.zip)

Copy link
Member Author

Choose a reason for hiding this comment

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

404

Copy link
Member

@teh-cmc teh-cmc Oct 23, 2023

Choose a reason for hiding this comment

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

Yeah it will 404 until we have a cpp release. We can ship an rc1 tomorrow I guess?

Copy link
Member

Choose a reason for hiding this comment

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

I've temporarily added the C++ sdk as an asset of the 0.9.1 release so we can test our links.

Copy link
Member

Choose a reason for hiding this comment

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

'latest' is actually a bad idea for a users's cmake script. Because then it auto-updates when we bring out a new latest

Copy link
Member

Choose a reason for hiding this comment

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

https://github.com/rerun-io/rerun/releases/download/0.10.0/rerun_cpp_sdk.zip then

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

nice! Finally some sane getting started documentation \o/

crates/re_viewer/data/quick_start_guides/cpp_connect.md Outdated Show resolved Hide resolved
crates/re_viewer/data/quick_start_guides/cpp_connect.md Outdated Show resolved Hide resolved
crates/re_viewer/data/quick_start_guides/cpp_connect.md Outdated Show resolved Hide resolved
docs/code-examples/quick_start_connect.cpp Outdated Show resolved Hide resolved
docs/code-examples/quick_start_connect.cpp Outdated Show resolved Hide resolved
@emilk emilk merged commit 563e508 into main Oct 24, 2023
@emilk emilk deleted the emilk/cpp-quick-start branch October 24, 2023 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌊 C++ API C/C++ API specific 📖 documentation Improvements or additions to documentation examples Issues relating to the Rerun examples exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add C++ to in-viewer quick-start guide
3 participants