-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update tutorial build step #626
base: gz-math8
Are you sure you want to change the base?
Conversation
Unifies building steps for unix and win using cmake. Signed-off-by: Alessandro Sofia <[email protected]>
Update to build it from windows Signed-off-by: Alessandro Sofia <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just a small suggestion to use modern CMake for linking libraries.
Co-authored-by: Addisu Z. Taddese <[email protected]> Signed-off-by: Alessandro Sofia <[email protected]>
Thank you for the suggestion, I was following the style of the other tutorial, should it be changed also there? |
Yeah, I think we should change that as well |
|
||
```{.bash} | ||
c++ $(pkg-config --cflags gz-math8) main.cpp -o main | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```{.bash} |
The program can then be run as: | ||
Compile the example: | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
```{.bash} |
For Unix systems: | ||
``` | ||
make | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Unix systems: | |
``` | |
make | |
``` | |
For Unix systems: | |
```{.bash} | |
make |
For Windows systems: | ||
``` | ||
cmake --build . --config Release | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Windows systems: | |
``` | |
cmake --build . --config Release | |
``` | |
For Windows systems: | |
```{.bash} | |
cmake --build . --config Release |
Distance from 1 3 5 to 2 4 6 is 1.73205 | ||
``` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this new line
🐢 Tutorial Update
Related to #1362
Summary
Unifies building steps for unix and win using cmake instead of pkg-config.