Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could NOT find Vitis (missing: Vitis_AIE_INCLUDE_DIR) #677

Open
coExpo opened this issue Jan 16, 2025 · 3 comments
Open

Could NOT find Vitis (missing: Vitis_AIE_INCLUDE_DIR) #677

coExpo opened this issue Jan 16, 2025 · 3 comments

Comments

@coExpo
Copy link

coExpo commented Jan 16, 2025

I'm not sure if this is the right place to ask, but I tried running the hello_world example using the Vitis Unified IDE, and I encountered the following error:
CMake Error at /opt/Xilinx/Vitis/2024.1/tps/lnx64/cmake-3.24.2/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Vitis (missing: Vitis_AIE_INCLUDE_DIR) Call Stack (most recent call first): /opt/Xilinx/Vitis/2024.1/tps/lnx64/cmake-3.24.2/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /opt/Xilinx/Vitis/2024.1/vitisng-server/scripts/cmake/FindVitis.cmake:133 (find_package_handle_standard_args) CMakeLists.txt:14 (find_package) -- Configuring incomplete, errors occurred! See also "/home/ubuntu/Documents/Example/hello_world/build/hw/CMakeFiles/CMakeOutput.log". [ERROR] Build Failed

What should I do to resolve this issue?

i used FPGA Developer Ami(Ubuntu)

@mjthimm
Copy link
Contributor

mjthimm commented Jan 16, 2025

Hello,

Once you cloned the development kit, did you source the vitis_setup.sh script from within the development kit?:

. vitis_setup.sh

If you did, did you also install the Xilinx Runtime (XRT)? The output from the setup includes a prompt that shows you the command that can be used to automatically install the XRT:

"###########################################################################"
"#                       No XRT install detected!                          #"
"#     To install the XRT for Vitis runtime support, run 'install_xrt'     #"
"###########################################################################"

Once you source vitis_setup.sh, this command, install_xrt becomes available and can be run at any time thereafter.

Vitis builds rely upon the XRT, so it must be installed before builds can be run.

Could you please show me the command you used to run the build that produced this error?

Best,
Max

@coExpo
Copy link
Author

coExpo commented Jan 20, 2025

i already source vitis_setup.sh and installed xrt(https://github.com/aws/aws-fpga/blob/f1_xdma_shell/Vitis/docs/XRT_installation_instructions.md)

and i used the vtis unified ide (i want to build on gui), so maybe there's no command.. i run the vitis GUI and want to build on GUI but that error occured.

i run the Simple Vector Addition example on the Vitis Ide, but it is failed

i think this is related to this issue: https://adaptivesupport.amd.com/s/question/0D54U000088eVSTSA2/could-not-find-vitis-missing-vitisaieincludedir?language=en_US

@mjthimm
Copy link
Contributor

mjthimm commented Jan 21, 2025

Could you let me know if you are using an F1 instance or an F2 instance?

If you're using an F2 instance, did you run install_xrt after sourcing vitis_setup.sh?

As for having a GUI to run Vitis through it's GUI, please see here: https://github.com/aws/aws-fpga/blob/f2/developer_resources/DCV.md

This document contains instructions on how to start up a GUI for your F2 instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants