UT-Austin-RPL / deoxys_control

A modular, real-time controller library for Franka Emika Panda robots
Apache License 2.0
140 stars 20 forks source link

Protobuf linking issue #10

Closed Carlz182 closed 9 months ago

Carlz182 commented 10 months ago

Hello, I have troubles running make -j build_franka=1 and hope you can help me out. This is how I set up my paths:

echo $LD_LIBRARY_PATH
/lib:/usr/local/lib/:/opt/ros/noetic/lib:/opt/ros/noetic/lib/x86_64-linux-gnu

But when I run the make command, it fails linking the depending libraries:

[ 74%] Linking CXX executable zmq-client
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0x532): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x674): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x68f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x774): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x78f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0xe8a): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::~FrankaGripperStateMessage_Duration()':
franka_robot_state.pb.cc:(.text+0xf9e): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0xfe4): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::~FrankaRobotStateMessage_Errors()':
franka_robot_state.pb.cc:(.text+0x106e): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x10b4): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::~FrankaRobotStateMessage_Duration()':
franka_robot_state.pb.cc:(.text+0x113e): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):franka_robot_state.pb.cc:(.text+0x1184): more undefined references to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()' follow
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x150e): undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x1564): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x157f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x1597): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x15af): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x15c7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::~FrankaGripperStateMessage()':
franka_robot_state.pb.cc:(.text+0x1629): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x16ca): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x170f): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::~FrankaRobotStateMessage()':
franka_robot_state.pb.cc:(.text+0x19e0): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::~FrankaGripperStateMessage()':
franka_robot_state.pb.cc:(.text+0x1b5c): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):franka_robot_state.pb.cc:(.text+0x1bf9): more undefined references to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()' follow
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x2184): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x219c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x21b4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x21cc): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x21e4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):franka_robot_state.pb.cc:(.text+0x21fc): more undefined references to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)' follow
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x33b4): undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x348b): undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x35c5): undefined reference to `google::protobuf::io::CodedOutputStream::WriteVarint32ToArrayOutOfLineHelper(unsigned int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3627): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3647): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3667): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3684): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3b84): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3b9f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3bb7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3bcf): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3be4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c07): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c1f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c34): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c4c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c5f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c77): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3c8c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3ca7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3cbc): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3cd7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3cec): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d07): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d1c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d34): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d54): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d77): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3d8f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3da4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3dc7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3ddc): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3df4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e17): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e2f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e44): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e64): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e87): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3e9c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3eb7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3ecf): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3ee4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f07): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f1c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f34): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f57): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f6c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f87): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3f9f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3fb4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3fd4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x3ff7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x400f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4024): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4047): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x405c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4074): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4097): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x40af): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x40c4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x40e4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4104): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x411f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4134): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x414f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4164): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x417c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4197): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x41af): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x41c4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x41e7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x41fc): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4214): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4237): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x424c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4267): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x427f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4294): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x42b7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x42cc): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x42e4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4307): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x431f): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4334): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4357): undefined reference to `google::protobuf::io::EpsCopyOutputStream::WriteRawFallback(void const*, int, unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x436c): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x4384): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x43a7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x43c7): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x43e4): undefined reference to `google::protobuf::io::EpsCopyOutputStream::EnsureSpaceFallback(unsigned char*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_RobotMode_descriptor()':
franka_robot_state.pb.cc:(.text+0x4412): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const*, bool)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration* google::protobuf::Arena::CreateMaybeMessage<FrankaGripperStateMessage_Duration>(google::protobuf::Arena*)':
franka_robot_state.pb.cc:(.text+0x4ea5): undefined reference to `google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage* google::protobuf::Arena::CreateMaybeMessage<FrankaGripperStateMessage>(google::protobuf::Arena*)':
franka_robot_state.pb.cc:(.text+0x4f15): undefined reference to `google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors* google::protobuf::Arena::CreateMaybeMessage<FrankaRobotStateMessage_Errors>(google::protobuf::Arena*)':
franka_robot_state.pb.cc:(.text+0x4f95): undefined reference to `google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration* google::protobuf::Arena::CreateMaybeMessage<FrankaRobotStateMessage_Duration>(google::protobuf::Arena*)':
franka_robot_state.pb.cc:(.text+0x5005): undefined reference to `google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage* google::protobuf::Arena::CreateMaybeMessage<FrankaRobotStateMessage>(google::protobuf::Arena*)':
franka_robot_state.pb.cc:(.text+0x5079): undefined reference to `google::protobuf::Arena::AllocateAlignedWithHook(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::_InternalParse(char const*, google::protobuf::internal::ParseContext*)':
franka_robot_state.pb.cc:(.text+0x575a): undefined reference to `google::protobuf::internal::UnknownFieldParse(unsigned long, google::protobuf::UnknownFieldSet*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x57da): undefined reference to `google::protobuf::internal::EpsCopyInputStream::DoneFallback(int, int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x5821): undefined reference to `google::protobuf::internal::ReadTagFallback(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x5834): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::_InternalParse(char const*, google::protobuf::internal::ParseContext*)':
franka_robot_state.pb.cc:(.text+0x5909): undefined reference to `google::protobuf::internal::ReadTagFallback(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x5949): undefined reference to `google::protobuf::internal::EpsCopyInputStream::DoneFallback(int, int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x63fe): undefined reference to `google::protobuf::internal::UnknownFieldParse(unsigned long, google::protobuf::UnknownFieldSet*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x6470): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x648d): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x64ad): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x64cd): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x64ed): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):franka_robot_state.pb.cc:(.text+0x650d): more undefined references to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)' follow
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::_InternalParse(char const*, google::protobuf::internal::ParseContext*)':
franka_robot_state.pb.cc:(.text+0x69aa): undefined reference to `google::protobuf::internal::UnknownFieldParse(unsigned long, google::protobuf::UnknownFieldSet*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x6a2a): undefined reference to `google::protobuf::internal::EpsCopyInputStream::DoneFallback(int, int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x6a71): undefined reference to `google::protobuf::internal::ReadTagFallback(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x6a84): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::_InternalParse(char const*, google::protobuf::internal::ParseContext*)':
franka_robot_state.pb.cc:(.text+0x9b5a): undefined reference to `google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite*, char const*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9bd4): undefined reference to `google::protobuf::internal::EpsCopyInputStream::DoneFallback(int, int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9c81): undefined reference to `google::protobuf::internal::ReadTagFallback(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9cc2): undefined reference to `google::protobuf::internal::UnknownFieldParse(unsigned long, google::protobuf::UnknownFieldSet*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9d04): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9d24): undefined reference to `google::protobuf::internal::VarintParseSlow32(char const*, unsigned int)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::_InternalParse(char const*, google::protobuf::internal::ParseContext*)':
franka_robot_state.pb.cc:(.text+0x9e01): undefined reference to `google::protobuf::internal::ReadTagFallback(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9e3d): undefined reference to `google::protobuf::internal::EpsCopyInputStream::DoneFallback(int, int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0x9e9f): undefined reference to `google::protobuf::internal::PackedDoubleParser(void*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0xa371): undefined reference to `google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite*, char const*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0xa516): undefined reference to `google::protobuf::internal::UnknownFieldParse(unsigned long, google::protobuf::UnknownFieldSet*, char const*, google::protobuf::internal::ParseContext*)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0xa55a): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: franka_robot_state.pb.cc:(.text+0xa573): undefined reference to `google::protobuf::internal::VarintParseSlow64(char const*, unsigned int)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::Clear()':
franka_robot_state.pb.cc:(.text+0xb8ea): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::CopyFrom(FrankaGripperStateMessage const&)':
franka_robot_state.pb.cc:(.text+0xc1bb): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0x358): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0x397): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0x3d7): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::GetMetadata() const':
franka_robot_state.pb.cc:(.text+0x3fa): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), std::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::GetMetadata() const':
franka_robot_state.pb.cc:(.text+0x41a): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), std::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::GetMetadata() const':
franka_robot_state.pb.cc:(.text+0x43a): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), std::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::GetMetadata() const':
franka_robot_state.pb.cc:(.text+0x45a): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), std::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::GetMetadata() const':
franka_robot_state.pb.cc:(.text+0x47a): undefined reference to `google::protobuf::internal::AssignDescriptors(google::protobuf::internal::DescriptorTable const* (*)(), std::once_flag*, google::protobuf::Metadata const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0x58d): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Duration::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x667): undefined reference to `google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*, google::protobuf::io::EpsCopyOutputStream*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage_Duration::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x767): undefined reference to `google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*, google::protobuf::io::EpsCopyOutputStream*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::ByteSizeLong() const':
franka_robot_state.pb.cc:(.text+0xf3a): undefined reference to `google::protobuf::Message::MaybeComputeUnknownFieldsSize(unsigned long, google::protobuf::internal::CachedSize*) const'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaGripperStateMessage::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x1553): undefined reference to `google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*, google::protobuf::io::EpsCopyOutputStream*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage_Errors::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x250b): undefined reference to `google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*, google::protobuf::io::EpsCopyOutputStream*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `FrankaRobotStateMessage::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const':
franka_robot_state.pb.cc:(.text+0x3616): undefined reference to `google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&, unsigned char*, google::protobuf::io::EpsCopyOutputStream*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `google::protobuf::internal::InternalMetadata::~InternalMetadata()':
franka_robot_state.pb.cc:(.text._ZN6google8protobuf8internal16InternalMetadataD2Ev[_ZN6google8protobuf8internal16InternalMetadataD5Ev]+0x25): undefined reference to `google::protobuf::internal::ThreadSafeArena::~ThreadSafeArena()'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `google::protobuf::UnknownFieldSet* google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>()':
franka_robot_state.pb.cc:(.text._ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v[_ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v]+0x2b): undefined reference to `google::protobuf::Arena::AllocateAlignedWithCleanup(unsigned long, std::type_info const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o): in function `_GLOBAL__sub_I.00102__FrankaGripperStateMessage_Duration_default_instance_':
franka_robot_state.pb.cc:(.text.startup+0x13): undefined reference to `google::protobuf::internal::AddDescriptorsRunner::AddDescriptorsRunner(google::protobuf::internal::DescriptorTable const*)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):(.data.rel.ro+0x0): undefined reference to `google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):(.data.rel.ro+0x10): undefined reference to `google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):(.data.rel.ro+0x20): undefined reference to `google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):(.data.rel.ro+0x30): undefined reference to `google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)'
/usr/bin/ld: libshared_protobuf.a(franka_robot_state.pb.cc.o):(.data.rel.ro+0x40): undefined reference to `google::protobuf::Message::CopyWithSizeCheck(google::protobuf::Message*, google::protobuf::Message const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/zmq-client.dir/build.make:87: zmq-client] Fehler 1
make[2]: *** [CMakeFiles/Makefile2:308: CMakeFiles/zmq-client.dir/all] Fehler 2

When I have a look at the CMake cache, the protobuf.so is set up correctly. I would appreciate any help.

zhuyifengzju commented 10 months ago

Hi, it might be some conflict of protobuf between ros and the version this package requires. Maybe double check again if the cmake compilation is using the correct version of protobuf. Deoxys uses the version of 3.13, while I believe ros was using much older version.

Soha18 commented 10 months ago

Hi,

I faced the same problem, and it looks like it's not related to the versions mentioned above as I checked for it and also used the script: export LD_LIBRARY_PATH=$(dirname "${0}")/../lib:$LD_LIBRARY_PATH

Thanks in advance

zhuyifengzju commented 10 months ago

Do you mean that you checked the protobuf version downloaded is correct or the protobuf version used to compile the codebase is correct? It might be the case that the protobuf used to compile the code is not correct. If you only have 3.13.0 version, maybe consult the protobuf repo first and see what is the issue of these not defining functions.

Soha18 commented 10 months ago

Thanks for your response .. Yes I checked the version protobuf and the version required for the codesbase. I will check in protobuf repo ..

Thanks again

praj441 commented 9 months ago

@Soha18 I am getting the same errors. Are you able to solve it?

praj441 commented 9 months ago

Hey! I am able to solve it. In my case, I set the LIBRARY_PATH as follows:

export LIBRARY_PATH=/usr/local/lib/:$LIBRARY_PATH

After this, the errors disappear, and the code compiles normally. Please give a thumbs up if it solves someone else's problem as well!

Carlz182 commented 9 months ago

We could also solve it in the meantime. The path was one issue because it took the Ros protobuf version. The other one was that the other version of protobuf was outdated. To be able to Install the right version, we had to update the Kernel to 5.11 and then we could install protobuf 3.13 using apt.

praj441 commented 9 months ago

@Carlz182 Hello, While running the code example "reset_robot_joints.py", I am getting the following error: 'If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.'

Are you able to run the example successfully? I am using ubuntu 20.04.6 with kernel 5.4.0-164-generic And Python 3.8.18 in an anaconda environment. Any idea?

Soha18 commented 9 months ago

Hi

trypip install protobuf==3.20.0

praj441 commented 9 months ago

@Carlz182

Thanks! Its worked !