XRT icon indicating copy to clipboard operation
XRT copied to clipboard

Errors about Protobuf While Compiling XRT

Open Tkomch opened this issue 10 months ago • 0 comments
trafficstars

I have some errors related to the Protobuf library while compiling the XRT. Below is a snippet of the output:

/usr/bin/ld: ../common_em/libcommon_em.a(rpc_messages.pb.cc.o):(.data.rel+0x3b20): undefined reference to google::protobuf::internal::TcParser::FastF64S1(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*, unsigned long)' /usr/bin/ld: ../common_em/libcommon_em.a(rpc_messages.pb.cc.o):(.data.rel+0x3b88): undefined reference to google::protobuf::internal::TcParser::GenericFallback(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*, unsigned long)' /usr/bin/ld: ../common_em/libcommon_em.a(rpc_messages.pb.cc.o):(.data.rel+0x3b90): undefined reference to google::protobuf::internal::TcParser::FastF32S1(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*, unsigned long)' /usr/bin/ld: ../common_em/libcommon_em.a(rpc_messages.pb.cc.o):(.data.rel+0x3ba0): undefined reference to google::protobuf::internal::TcParser::FastF64S1(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*, unsigned long)' collect2: error: ld returned 1 exit status make[2]: *** [runtime_src/core/pcie/emulation/sw_emu/CMakeFiles/xrt_swemu.dir/build.make:100:runtime_src/core/pcie/emulation/sw_emu/libxrt_swemu.so.2.19.0] 错误 1 make[1]: *** [CMakeFiles/Makefile2:2388:runtime_src/core/pcie/emulation/sw_emu/CMakeFiles/xrt_swemu.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... [ 57%] Building CXX object runtime_src/

OS: Linux Mint 22 Kernel version: 6.12.2-061202-generic Protobuf Version: 3.21.12

if reason of the problem is protobuf version, which version of protobuf should i use?

Tkomch avatar Jan 02 '25 16:01 Tkomch