Install and Run the Application

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:

    cd "${APP_DIR}"
  2. Install the application:

    bazel build //:install

    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:

    cd "${APP_DIR}/bazel-bin/install"
  2. Run the application via Execution Manager:

    sudo ./sbin/ves_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

  1. Navigate to the directory of your application in the terminal:

    cd "${APP_DIR}"
  2. Run the application via Bazel:

    bazel run //:install -- -m ./etc/machine_exec_config.json -a ./opt -l ./etc/logging_config.json -d +