When the elements of the Vitis software platform are installed, update the shell environment script. Set the environment variables to your system-specific paths.
To set up XRT, if you have not done this already, run the following command:
* source \<XRT-Location\>/setup.sh
In the design directory of each implementation, edit sample_env_setup.sh script with your file paths, then source the environment script:
source sample_env_setup.sh
The script sets up the environment variables and sources scripts explained below:
The
PLATFORM_REPO_PATHSenvironment variable is based on where you downloaded the platform.The
XILINX_TOOLS_LOCATIONpath to the AMD tools is used to source thesettings64.shscript.The
XLNX_VERSALpath to thexilinx-versal-common-v2024.2directory is used in the step below.The platform is set up by running the
xilinx-versal-common-v2024.2/environment-setup-cortexa72-cortexa53-xilinx-linuxscript as provided in the platform download This script sets up theSDKTARGETSYSROOTandCXXvariables. If the script is not present, you must run thexilinx-versal-common-v2024.2/sdk.shscript.DSPLIB_VITISis the path to the downloaded Vitis Libraries. This is only required for the AI Engine implementation.In the script, you can optionally set up an
XRT_ROOTenvironment variable, pointing to XRT - RPMs, which can be packaged in the Vitis compiler packaging step. If it is not set up, this environment variable is automatically excluded from packaging.The script also sets up the
PLATFORMvariable pointing to the required.xpfmfile of the target platform set by the variabletgt_plat.