Compiling and Linking Host Code for Linux - 2025.2 English - UG1076

AI Engine Tools and Flows User Guide (UG1076)

Document ID
UG1076
Release Date
2025-11-20
Version
2025.2 English
You can compile the embedded application by following the typical cross-compilation flow for the Arm Cortex-A72 processor.

In order to compile and link the host application to run on the Versal architecture board you must use the Vitis software.

You need to complete the following setup:

  1. Install the Vitis software. The Vitis release includes all the embedded base platforms, including the VCK190 base platforms.
  2. In addition, ensure you have downloaded the Common Images for Embedded Vitis Platforms from this link.

    The common image package contains a prebuilt Linux kernel and root file system. You can use the kernel and root file system with the Versal architecture board for embedded design development using Vitis.

  3. Unzip the Versal common image package.
  4. In a Bash shell, run the following script:

    /Common Images Dir/xilinx-versal-common-v2025.2/environment-setup-cortexa72-cortexa53-amd-linux

    This script sets up the SDKTARGETSYSROOT and CXX variables.

    If the script is not present, you must run /Common Images Dir/xilinx-versal-common-v2025.2/sdk.sh.

Now you are ready to compile and link the host application.