Step 2: Link Host Software - 2023.2 English

Vitis Tutorials: AI Engine

Document ID
XD100
Release Date
2023-11-29
Version
2023.2 English

Following is an example of how to link the build/aie_control.o, build/nbody.o, build/log.o, and build/ps_app.o into a build/ps_app.exe executable:

$(XILINX_VITIS)/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ ./build/aie_control_xrt.o \
                      ./build/ps_app.o \
                      ./build/log.o \
                      ./build/nbody.o \
                      -lxaiengine -ladf_api_xrt -lxrt_core    \
                      -lxrt_coreutil -lgcc -lc -lxilinxopencl \
                      -lpthread -lrt -ldl -lcrypt -lstdc++    \
                      -lOpenCL -std=c++17                     \
                      -Wno-unused-label -Wno-narrowing        \
                      -DVERBOSE                               \
                      -L$(SDKTARGETSYSROOT)/usr/lib                      \
                      --sysroot=$(SDKTARGETSYSROOT)                      \  
                      -L$(XILINX_VITIS)/aietools/lib/aarch64.o  \
                      -o ./build/ps_app.exe

The same linking options were used to generate the build/ps_app_animate.exe executable.