Vitis-Tutorials icon indicating copy to clipboard operation
Vitis-Tutorials copied to clipboard

AI_engine design tutorials 01-Lenet. Issue in compiling

Open roseduke3 opened this issue 3 years ago • 3 comments

Hello,

I'm compiling the 01-Lenet tutorials using the 'make all TARGET=hw_emu' command but an error occurs in the compiling process:

/home/shininy/Vitis-Tutorials/AI_Engine_Development/Design_Tutorials/01-aie_lenet_tutorial/design/host_app_src/lenet_app.cpp:27:10: fatal error: xrt/experimental/xrt_aie.h: No such file or directory

im now using the platform provided by xilinx vitis and i cant find a file named '$XILINX_VERSAL/environment-setup-cortexa72-cortexa53-xilinx-linux'. So i skip that source command in environment setup file. Should this be causing the error? If so, where can I get this file? Any help will be deeply appreciated.

Best Regards

roseduke3 avatar Jul 26 '22 21:07 roseduke3

This sounds like an environmental issue. The platform requires some common files to be installed for the XRT runtime. These files can be found in the Embedded Platforms download page. The environment-setup-cortexa72-cortexa53-xilinx-linux should be included under the Common Images for Embedded Vitis Platforms section.

randyh62 avatar Jul 26 '22 22:07 randyh62

This sounds like an environmental issue. The platform requires some common files to be installed for the XRT runtime. These files can be found in the Embedded Platforms download page. The environment-setup-cortexa72-cortexa53-xilinx-linux should be included under the Common Images for Embedded Vitis Platforms section.

yeah but so many files. im not sure which one actually i missed. also on the website the vck190 platform seems a little bit outdated

roseduke3 avatar Jul 26 '22 22:07 roseduke3

Please run through the following steps:

  1. Go to https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-platforms/2021-2.html
  2. Download "Versal common image"
  3. Extract the downloaded file tar -xzf xilinx-versal-common-v2021.2.tar.gz
  4. Extract the sysroot ./sdk.sh
  5. Source environment-setup-cortexa72-cortexa53-xilinx-linux from the extracted sysroot directory.

imrickysu avatar Aug 01 '22 02:08 imrickysu