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

  1. Navigate to the directory of your application in the terminal:
  2. cd "${APP_DIR}"

  3. Install the application:
  4. bazel build //:install

  1. The installation-ready package can now be found in the <APP_DIR>/bazel-bin/install directory in your delivery.

Step 2: Run the Application

You can either run the application via Execution Manager or Bazel directly.

Run via Execution Manager

  1. Navigate to the install directory of your application in the terminal:
  2. cd "${APP_DIR}/bazel-bin/install"

  3. Run the application via Execution Manager:
  4. sudo ./sbin/amsr_em_daemon -a ./opt -m ./etc/machine_exec_config.json -l ./etc/logging_config.json -d

  1. Your application logged a log message (optionally adapted in the section Adapt the Application) to the terminal.

Run via Bazel

  1. Navigate to the directory of your application in the terminal:
  2. cd "${APP_DIR}"

  3. Run the application via Bazel:
  4. 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