Kinovarobotics / kortex

Code examples and API documentation for KINOVA® KORTEX™ robotic arms
https://www.kinovarobotics.com/
Other
107 stars 84 forks source link

Problem in linking step when using EtherCatMaster and KortexAPI #193

Open SebastienCol opened 5 months ago

SebastienCol commented 5 months ago

Description

Dear Kinova team,

Problem in linking step when using EtherCatMaster and KortexAPI. Suggests recompiling with -fPIE but this does not work. Error output below. This started happening when using SOEM for other uses. When linked with Kortex library, this problem started occurring.

Version

Originally KortexAPI version 2.3.0 and now still not working with KortexAPI version 2.6.0.

Code example

  /usr/bin/ld: /opt/Kortex/lib/release/libKortexApiCpp.a(KeEthercatMaster.cpp.o): relocation R_X86_64_32S against symbol `_ZTV23KeEthercatMasterFactory' can not be used when making a PIE object; recompile with -fPIE
  /usr/bin/ld: failed to set dynamic section sizes: bad value
  collect2: error: ld returned 1 exit status

Expected behavior