Xilinx / XRT

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

"xdp_hw_emu_device_offload_plugin" does not exist #6942

Open mahdiaminik opened 1 year ago

mahdiaminik commented 1 year ago

Hi. I'm very newbie in hardware design system and i'm trying to build XRT in docker for pynq system also installed via pip3, without any Vitis, Vivado or ISE. just for connecting pynq to XRT to access PL from PS. (according to https://discuss.pynq.io/t/docker-xilinx-platforms-pynq/1962) (my board : http://www.alinx.com/en/index.php/default/content/114.html) and when i'm tying to build XRT i see :

CMake Error at runtime_src/xdp/CMakeLists.txt:406 (add_dependencies):
  The dependency target "xrt_hwemu" of target
  "xdp_hw_emu_device_offload_plugin" does not exist.

CMake Error at runtime_src/xdp/CMakeLists.txt:407 (add_dependencies):
  The dependency target "xrt_hwemu" of target "xdp_hw_emu_pl_deadlock_plugin"
  does not exist.

And here is my Dockerfile :

FROM    ubuntu:20.04
ENV     DEBIAN_FRONTEND="noninteractive" TZ=Asia/Tehran
# for tzdata in xrtdeps.sh dependency tree
RUN     ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
        echo $TZ > /etc/timezone && \
        apt-get update && \
        apt-get install -y tzdata git 
WORKDIR /xrt
RUN     git clone https://github.com/Xilinx/XRT.git . && \
        sed -i "s/apt/apt-get/g; s/clang-tidy/-y clang-tidy/g" /xrt/src/runtime_src/tools/scripts/xrtdeps.sh
RUN     /xrt/src/runtime_src/tools/scripts/xrtdeps.sh -docker
RUN     cd /xrt/build && ./build.sh

A suggestion : Please upload the final .deb file of installing XRT in Releases section.(specially armhf arch) Thank you.

uday610 commented 1 year ago

@jvillarre , can you see if you have any insight here

jvillarre commented 1 year ago

The two debug/profile plugins listed do have a dependency on the hardware emulation libraries being built, and the hardware emulation libraries have a restriction where they are only built if the system processor is x86_64. If running build.sh on the Zynq board itself the hardware emulation libraries will not be built.

XRT can be built on an x86 for the zynq by using the build_edge.sh script.

mahdiaminik commented 1 year ago

The two debug/profile plugins listed do have a dependency on the hardware emulation libraries being built, and the hardware emulation libraries have a restriction where they are only built if the system processor is x86_64. If running build.sh on the Zynq board itself the hardware emulation libraries will not be built.

XRT can be built on an x86 for the zynq by using the build_edge.sh script.

Thanks for your answer. But how did they (pynq devs) build image within XRT for armhf arch? via crosscompile???

uday610 commented 1 year ago

@mahdiaminik , we dont know about pync developer, they are different team and they may have their custom flow. You may reach out to them to know about this. From our XRT side, we officially support build_edge.sh script as mentioned in the previous comment

yyx32 commented 3 months ago

Hi @mahdiaminik ,have you solve this error?