【以下的问题经过翻译处理】
我在AWS机器上构建项目时遇到AWS_PLATFORM错误,请看下面的错误提示:
ERROR: [v++ 60-1258] No valid platform was found that matches 'AWS_PLATFORM'. Please make sure that the platform is specified correctly
平台仓库路径为:
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/tools/Xilinx/Vitis/2019.2/platforms
从上述仓库路径中找到的有效平台为:
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/xilinx_aws-vu9p-f1_shell-v04261818_201920_2.xpfm
/tools/Xilinx/Vitis/2019.2/platforms/xcvc1902_fixed/xcvc1902_fixed.xpfm
当我检查环境变量时,我发现:
$ echo $PLATFORM_REPO_PATHS
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2
$ echo $AWS_PLATFORM
/home/ubuntu/aws/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/xilinx_aws-vu9p-f1_shell-v04261818_201920_2.xpfm
那问题出在哪里呢?我已经正确设置了AWS_PLATFORM名称和PLATFORM_REPO_PATHS路径,但是Vivado仍然报错未找到与 'AWS_PLATFORM' 匹配的有效平台。