-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Albrecht Johannes (DC-IA/EAO5)
committed
Apr 6, 2023
1 parent
9ac2e53
commit d6d3218
Showing
266 changed files
with
13,891 additions
and
3,547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,26 @@ | ||
An App Build Environment instance created by ctrlX WORKS or based on the scripts under the SDK folder public/scripts/environment has a set of important install scripts in the directory __/home/boschrexroth/.__ | ||
The directory __/home/boschrexroth/scripts/__ of an App Build Environment contains a set of important scripts. | ||
|
||
## install-sdk.sh | ||
In the file `/home/boschrexroth/scripts/README.md` all files are listed and described. | ||
|
||
!!! important | ||
Starting this script must be the first step using a new App Build Environment. | ||
|
||
This script downloads the ctrlX AUTOMATION SDK archive from github, extracts the content into the actual directory, sets some x permission flags and installs the ctrlx-datalayer debian package. | ||
|
||
Also snapcraft is installed because in the initialization phase during the first boot this snap cannot be installed. | ||
__Hint:__ The ctrlX AUTOMATION SDK contains these scripts also in the folder scripts/environment/scripts. | ||
|
||
Here the archive is directly installed into the home directory: | ||
## Some important scripts | ||
|
||
cd | ||
./install-sdk.sh | ||
cd ctrlx-automation-sdk | ||
|
||
## install-deb.sh | ||
### install-sdk.sh | ||
|
||
!!! important | ||
Calling this script once is mandatory for architectural cross-builds of C++ apps. | ||
|
||
cd | ||
./install-deb.sh | ||
Run this script first. | ||
|
||
Important libraries for the Data Layer communication are installed for both amd64 and arm64 (aarch64) architecture. | ||
|
||
## install-go.sh | ||
|
||
If you want to develop apps in golang call this script: | ||
|
||
cd | ||
./install-go.sh | ||
|
||
## install-dotnet.sh | ||
|
||
If you want to develop apps in C# call this script: | ||
|
||
cd | ||
./install-dotnet.sh | ||
In addition to the ctrlX AUTOMATION SDK, the ctrlx-datalayer debian package, snapcraft and libraries for cross build are installed. | ||
|
||
## install-nodejs-npm.sh | ||
~/scripts/install-sdk.sh | ||
|
||
If you want to develop apps in Node.js call this script: | ||
Now the directory ctrlx-automation-sdk/ contains the files of the ctrlX AUTOMATION SDK. | ||
|
||
cd | ||
./install-nodejs-npm.sh | ||
### install-go, -dotnet, -nodejs | ||
|
||
The Node.js snap inclusively the Node Package Manager npm ist installed. | ||
These scripts are installing programming language dependend packages to be able to build apps in the according language. | ||
|
||
## install-snapcraft.sh | ||
### install-ctrlx-os-dev-tools.sh | ||
|
||
This script installs snapcraft, it is called implicitly by the other scripts. | ||
This script installs packages needed to build a ctrlX CORE image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
## Introduction | ||
|
||
If you want to contribute the ctrlX AUTOMATION SDK you have to clone the github repository https://github.com/boschrexroth/ctrlx-automation-sdk.git. | ||
|
||
After this step you have to merge the runtime content of ths ctrlX AUTOMATION SDKs zip archive into this repo. | ||
|
||
These jobs can be initiated by __install-sdk-from-github.sh__ located in the ctrlX AUTOMATION SDK folder __scripts/__ | ||
|
||
## Installing a Runnable Repository | ||
|
||
* Open the github site [https://github.com/boschrexroth/ctrlx-automation-sdk/tree/main/scripts](https://github.com/boschrexroth/ctrlx-automation-sdk/tree/main/scripts) | ||
* Download the script install-sdk-from-github.sh | ||
* Install the script e.g. in the home directory of your App Build Environment | ||
* Create a working directory e.g. ~/github | ||
* Change into this directory and call the script | ||
|
||
~/install-sdk-from-github.sh | ||
|
||
When the script is finished the ctrlX AUTOMATION SDK is installed into the directory ctrlx-automation-sdk and sample projects can be build at once. | ||
|
||
## Build Sample Project | ||
|
||
To build a sample project do following steps: | ||
|
||
Change directory e.g.: | ||
|
||
cd ctrlx-automation-sdk/public/samples-cpp/datalayer.provider.all-data | ||
|
||
|
||
Build snap: | ||
|
||
build-snap-amd64.sh | ||
|
||
|
||
## Troubleshooting | ||
|
||
github grants only a a limited number of accesses to its repositories. If you are behind a proxy this number can be exceeded very fast. In this case the download of the zip archive fails. | ||
|
||
To avoid this you need a github account and a personal access token - see [Creating a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) | ||
|
||
Open the script install-sdk-from-github.sh search the line beginning with LATEST=$(curl -s and add this information: | ||
|
||
From | ||
|
||
LATEST=$(curl -s ... | ||
|
||
change to e.g. | ||
|
||
LATEST=$(curl -s -u usrxyz:tokenxyz ... | ||
|
||
|
||
|
Oops, something went wrong.