XILINX_XRT variable is not set

0

Working my way through the walkthrough on this page:

Upon performing these steps:

$ cd $VITIS_DIR/examples/xilinx/hello_world            
$ make clean                                                                   
$ make run TARGET=sw_emu DEVICE=$AWS_PLATFORM all       

The last step gets me this error:

utils.mk:45: *** XILINX_XRT variable is not set, please set correctly and rerun. Stop

I see some mention of XILINX_XRT when I searched these forums, but not this exact error message, so thought I'd post here for any clues on what to do :)

Gurce
asked 3 years ago1052 views
3 Answers
0

Hmm, ok, online I saw this thread:

https://forums.xilinx.com/t5/Vitis-Acceleration-SDAccel-SDSoC/SDAccel-2018-3-examples-Error-XILINX-XRT-is-not-defined/m-p/922598

It suggested that I could download this XRT thing manually from here:

https://www.xilinx.com/products/boards-and-kits/alveo/u200.html#gettingStarted

Ok, I'll give that a go... Though not sure why the AMI I used didn't have it from the get-go. Perhaps the AMI was an older one (from maybe a month ago? It has a "/opt/Xilinx/Vitis/2020.2/" path in it, so not the latest-and-greatest Vitis/Vivado)

Gurce
answered 3 years ago
0

Hi,

XILINX_XRT env var is setup when you source vitis_setup.sh scripts if XRT is installed on the host.

Are you running these steps on the FPGA Developer AMI? If so, can you re-run :

source vitis_setup.sh

If you are running these steps on the FPGA Developer AMI(AL2), XRT might not be pre-installed if you are using an older version and you can install it from the packages listed here: https://github.com/aws/aws-fpga/blob/master/Vitis/docs/XRT_installation_instructions.md

-Deep

Edited by: awsdeep on Aug 5, 2021 10:26 AM

Deep_P
answered 3 years ago
0

Ok, tried running "source vitis_setup.sh" again, still no sign of $XILINX_XRT being set.

I then read the page you suggested, grabbed the two rpms for Vitis 2020.2 and AL2.

Had to install these with "yum install" rather than "yum reinstall", as they weren't on my system at present.

Then ran the "source vitis_setup.sh" again, and finally got my $XILINX_XRT env var!

Then I tried building the hello_world example and it worked fine :)

PS. Looks like my email-address wasn't the right one for this account (had a typo). Is it possible to change it? (couldn't see an option in my profile settings)

Gurce
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions