Build Application Files
In the following steps you will create the build cache and the executable for your Hello World Application.
Optional: Copy Example
-
Copy the directory
/Examples/amsr-vector-app-example-hello-worldto your workspace. -
Rename the copied directory.
|
Your workspace may be located outside of the directory of your BSW Package. |
Step 1: Set Environment Variable
-
Open a terminal session.
-
Set the environment variable
AMSR_SRC_DIRto the path of the BSW Package delivery.
export AMSR_SRC_DIR=~/<path to BSW Package>
Step 2: Initialize the build-cache
-
In the terminal, change to the directory to your copied Hello World App directory.
cd ~/<path to Hello World App> -
Initialize the build-cache with CMake.
The
VES_EXECUTIONMANAGER_EXAMPLE_APP_MSCsetting tells the EM example application to act as machine state client (MSC).cmake -S . --preset=gcc11_linux_x86_64 -C ${AMSR_SRC_DIR}/CMakeConfig/linux_gcc11.cmake -D VES_EXECUTIONMANAGER_EXAMPLE_APP_MSC=ON
You will find the build-cache in the build directory of the Hello
World App directory: ./build/gcc11_linux_x86_64.