Following is an example of how to compile the ../Module_02_aie/Work_x4_x100/ps/c_rts/aie_control_xrt.cpp
file.
aarch64-linux-gnu-g++ -Wall -c -g \
-fmessage-length=0
-std=c++14 \
-Wno-unknown-pragmas
-Wno-unused-label
-Wno-int-to-pointer-cast
--sysroot=$SYSROOT
-I$SYSROOT/usr/include/xrt
-I$SYSROOT/usr/include
-I./
-I../Module_02_aie
-I../Module_02_aie/src
-I$XILINX_VITIS/aietools/include
-I$XILINX_VITIS/include
-I../Module_03_pl_kernels/Vitis_Libraries/utils/ext/xcl2
-I../Module_03_pl_kernels/Vitis_Libraries/utils/L1/include
-o ./build/aie_control_xrt.o
../Module_02_aie/build/Work_x4_x100/ps/c_rts/aie_control_xrt.cpp
The same compilation options were used to compile the host/nbody.cpp
, host/log.cpp
, host/main_xrt.cpp
, and host/main_animate.cpp
files.