AR# 72345

|

2019.1 SDAccel - libxrt_coreutil.so.2 needed by libxilinxopencl.so not found

描述

When building my host application in SDAccel 2019.1, I get the following errors:

/Vivado/2019.1/tps/lnx64/binutils-2.26/bin/ld: warning: libxrt_coreutil.so.2, needed by /opt/xilinx/xrt/lib/libxilinxopencl.so, not found (try using -rpath or -rpath-link)
/opt/xilinx/xrt/lib/libxilinxopencl.so: undefined reference to `xrt_core::config::detail::get_uint_value(char const*, unsigned int)'
/opt/xilinx/xrt/lib/libxilinxopencl.so: undefined reference to `xrt_core::config::detail::get_string_value(char const*, std::string const&)'
/opt/xilinx/xrt/lib/libxilinxopencl.so: undefined reference to `xrt_core::message::send(xrt_core::message::severity_level, char const*, char const*)'
/xrt/lib/libxilinxopencl.so: undefined reference to `xrt_core::config::detail::get_bool_value(char const*, bool)'
collect2: error: ld returned 1 exit status

解决方案

XRT has added an indirect dependency on a new shared library, libxrt_coreutil.so.

Host applications linking with libxilinxopencl.so must be able to locate this new library during linking.

You can resolve this issue either by sourcing the XRT setup.sh/.csh file, or by adding the following to the xocc linker command line in your makefile:

-Wl,-rpath-link,$(XILINX_XRT)/lib
AR# 72345
日期 05/29/2019
状态 Active
Type 综合文章
Tools
People Also Viewed