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

[GAIAPLAT-1521] Add direct_access example README.md #1005

Merged
merged 3 commits into from
Oct 12, 2021

Conversation

simone-gaia
Copy link
Contributor

  • Add direct_access example README.md
  • Minor fixes to the incubator README.md

## Build Instructions
These instructions assume you have installed the SDK and have installed the `clang` and `cmake` tools. See the SDK User's Guide for instructions on how to do this.

1. We suggest copying the sources to a new directory so that you always have a backup in the installed folder if you want to go back.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think "if you want to go back" can just be deleted.

Copy link

@vDonGlover vDonGlover Oct 12, 2021

Choose a reason for hiding this comment

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

To preserve the initial state of the sample code, copy the source files to a new folder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

cd direct_access
cp -r /opt/gaia/examples/direct_access/* .
```
2. Create a build directory (in this case it is under the current *incubator/* folder and build.
Copy link
Contributor

Choose a reason for hiding this comment

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

missing right paren

Choose a reason for hiding this comment

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

Create a build folder. The following commands create the build folder under the current direct_access/ folder and initiate the build.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should standardize on either "folder" or "directory" throughout the docs? The former is more informal and familiar, but has some GUI associations IMO, while the latter is perhaps more precise and more CLI-oriented?

Choose a reason for hiding this comment

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

Agreed. I just checked my go to style guide and deciding I could not draw a fully clear decision on it, I checked how it got applied in the associated docs. In the case of Linux, directory appears to be the word of choice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shortened to 2. Create the build folder under the current direct_access/ folder and initiate the build.

Let me know what do you want to do in regard to folder/directory

Choose a reason for hiding this comment

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

Let's go with directory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

cmake ..
make
```
3. If everything runs successfully the `hospital` executable will be built.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: comma after "successfully"

Choose a reason for hiding this comment

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

The output of the build is an executable name 'hospital'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

3. The output of the build is an executable the 'hospital' executable.


# Running the Demo

You can simply run the `hospital` binary from the build folder:

Choose a reason for hiding this comment

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

To run the hospital binary from the build folder use the following command:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

A demo of the Gaia Direct Access API.

## Build Instructions
These instructions assume you have installed the SDK and have installed the `clang` and `cmake` tools. See the SDK User's Guide for instructions on how to do this.

Choose a reason for hiding this comment

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

Question: For this "See the SDK User's Guide for instructions on how to do this." do we want to point them to the readme that we are adding for the SDK?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we want to point them to the readme that we are adding for the SDK?

We should.

Note: this is copied verbatim from the incubator demo README. If we change this we should change that too.

Choose a reason for hiding this comment

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

There is an existing Jira to review and update the readme for the samples.

Copy link

@vDonGlover vDonGlover left a comment

Choose a reason for hiding this comment

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

suggestions made.

```shell
mkdir build
cd build/
cmake ..
make
```
3. If everything runs successfully the `hospital` executable will be built.
3. The output of the build is an executable the 'hospital' executable.

Choose a reason for hiding this comment

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

The output of the build is the 'hospital' executable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Donbe.

@simone-gaia simone-gaia merged commit 108f8a2 into master Oct 12, 2021
@LaurentiuCristofor LaurentiuCristofor deleted the rondelli-example-readme branch October 15, 2021 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants