This section describes how to install your Hello World Application on the target system with all MICROSAR Adaptive runtime dependencies.
Step 1: Install the Application
- Navigate to the directory of your application in the terminal:
cd "${APP_DIR}"
- Install the application:
bazel build //:install
- The installation-ready package can now be found in the
<APP_DIR>/bazel-bin/installdirectory in your delivery.
Step 2: Run the Application
You can either run the application via Execution Manager or Bazel directly.
Run via Execution Manager
- Navigate to the
installdirectory of your application in the terminal: cd "${APP_DIR}/bazel-bin/install"
- Run the application via Execution Manager:
sudo ./sbin/amsr_em_daemon -a ./opt -m ./etc/machine_exec_config.json -l ./etc/logging_config.json -d
- Your application logged a log message (optionally adapted in the section Adapt the Application) to the terminal.
Run via Bazel
- Navigate to the directory of your application in the terminal:
cd "${APP_DIR}"
- Run the application via Bazel:
bazel run //:install -- -m ./etc/machine_exec_config.json -a ./opt -l ./etc/logging_config.json -d
Next step in the tutorial: Learn About the Application