Xilinx / XRT

Run Time for AIE and FPGA based platforms
https://xilinx.github.io/XRT
Other
553 stars 468 forks source link

ERROR: could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) #8385

Closed wilfredkisku closed 1 month ago

wilfredkisku commented 1 month ago

I am trying to install XRT 2022.1 on the following systems configurations:

  1. I cloned the XRT 2022.1 branch from github
  2. Ubuntu 20.04.6
  3. Kernel 5.15.0-119-generic
  4. Vitis Version 2022.1
  5. CMake 3.5.2
  6. The OS is installed on Oracle VirtualBox

I had installed cmake using the .sh script from cmake downloads. I tried solving the issue by installing both the python-devel and python3-devel packages but still getting the same error. I am unable to understand that even after the PythonLibs being installed still how is it unable to detect the libraries to continue with the installation.

The error that I am getting when i run the build.sh script is given below:

CMake Error at /opt/cmake-3.5.2-Linux-x86_64/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.4.0") Call Stack (most recent call first): /opt/cmake-3.5.2-Linux-x86_64/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /opt/cmake-3.5.2-Linux-x86_64/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) python/pybind11/CMakeLists.txt:5 (find_package)

Please advice with any debug steps or help with the versions that I need to pick so that I will be able to install the tools without any errors. Also, finally I need to synthesize PYNQ-DPU hardware using XRT later on.

wilfredkisku commented 1 month ago

Solved: Needed a newer version of CMake (using 3.16)