resilient-swarms / argos-sferes

An interface to using the ARGoS robot swarm simulator with the Sferes evolutionary algorithm framework
3 stars 0 forks source link

Linker errors #6

Closed bossdm closed 5 years ago

bossdm commented 5 years ago

I am still experiencing some linker errors.

Locally I was able to run the new version, with the exception that I needed to add lua to the includes in the CMakeLists.txt.

On Iridis5, I got the following linker errors:

/home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CEntity::GetContext[abi:cxx11]() const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CLuaUtility::AddToTable(lua_State, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CVector2 const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to `ticpp::Element::GetAttributeImp(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::AddToTable(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, argos::CRadians const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference toticpp::Exception::Exception(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `argos::CControllableEntity::SetController(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CDynamics2DEngine::AddPhysicsModel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, argos::CDynamics2DModel&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CComposableEntity::GetComponent(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `argos::CWheeledEntity::CWheeledEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to argos::CSpace::GetEntitiesByType(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CDynamics2DEngine::RemovePhysicsModel(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `argos::CLEDEquippedEntity::CLEDEquippedEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CBatteryEquippedEntity::CBatteryEquippedEntity(argos::CComposableEntity*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CGroundSensorEquippedEntity::CGroundSensorEquippedEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `argos::CEmbodiedEntity::RemovePhysicsModel(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CComposableEntity::RemoveComponent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CProximitySensorEquippedEntity::CProximitySensorEquippedEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to `argos::CLoopFunctions::RemoveEntity(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to ticpp::Node::FirstChild(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CBatteryEquippedEntity::CBatteryEquippedEntity(argos::CComposableEntity, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CBatteryDischargeModel, double, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::AddToTable(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CLuaUtility::OpenRobotStateTable(lua_State, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `argos::CControllableEntity::CControllableEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to `ticpp::Node::NextSibling(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CEmbodiedEntity::CEmbodiedEntity(argos::CComposableEntity*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, argos::CVector3 const&, argos::CQuaternion const&, bool)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference toargos::CComposableEntity::CComposableEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to `argos::CRandom::CreateRNG(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'

daneshtarapore commented 5 years ago

Please use the following for now in your .bash_profile:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/local/software/lua/5.3.4/lib export LD_LIBRARY_PATH

CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/local/software/lua/5.3.4/include export CPLUS_INCLUDE_PATH

Will try to get a better fix to this issue soon.

--D

On Thu, May 2, 2019 at 4:01 PM bossdm notifications@github.com wrote:

I am still experiencing some linker errors.

Locally I was able to run the new version, with the exception that I needed to add lua to the includes in the CMakeLists.txt.

On Iridis5, I got the following linker errors:

/home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CEntity::GetContext[abi:cxx11]() const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::AddToTable(lua_State, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CVector2 const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to ticpp::Element::GetAttributeImp(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::AddToTable(lua_State, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CRadians const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to ticpp::Exception::Exception(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CControllableEntity::SetController(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CDynamics2DEngine::AddPhysicsModel(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CDynamics2DModel&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CComposableEntity::GetComponent(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CWheeledEntity::CWheeledEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned long)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to argos::CSpace::GetEntitiesByType(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CDynamics2DEngine::RemovePhysicsModel(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLEDEquippedEntity::CLEDEquippedEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CBatteryEquippedEntity::CBatteryEquippedEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, double, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CGroundSensorEquippedEntity::CGroundSensorEquippedEntity(argos::CComposableEntity, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CEmbodiedEntity::RemovePhysicsModel(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CComposableEntity::RemoveComponent(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CProximitySensorEquippedEntity::CProximitySensorEquippedEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to argos::CLoopFunctions::RemoveEntity(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to ticpp::Node::FirstChild(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CBatteryEquippedEntity::CBatteryEquippedEntity(argos::CComposableEntity, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CBatteryDischargeModel, double, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::AddToTable(lua_State, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, double)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CLuaUtility::OpenRobotStateTable(lua_State, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CControllableEntity::CControllableEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to ticpp::Node::NextSibling(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) const' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CEmbodiedEntity::CEmbodiedEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&, argos::CVector3 const&, argos::CQuaternion const&, bool)' /home/dmb1m19/thymio/lib/argos3/libargos3plugin_simulator_thymio.so: undefined reference to argos::CComposableEntity::CComposableEntity(argos::CComposableEntity*, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)' ../lib/libobsavoid_evol_loopfunctions.so: undefined reference to `argos::CRandom::CreateRNG(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/resilient-swarms/argos-sferes/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ACAO4KLXZNWOODQAUFBBN6TPTL63HANCNFSM4HJ7GBDA .

bossdm commented 5 years ago

I already had these settings, so this does not appear to be the issue.

daneshtarapore commented 5 years ago

Can take a look at it tomorrow.

--D

On Thu, May 2, 2019 at 4:53 PM bossdm notifications@github.com wrote:

I already had these settings, so this does not appear to be the issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/resilient-swarms/argos-sferes/issues/6#issuecomment-488728555, or mute the thread https://github.com/notifications/unsubscribe-auth/ACAO4KJOTUMQCVP5P2I2BI3PTMFATANCNFSM4HJ7GBDA .

daneshtarapore commented 5 years ago

Can you give me the output of 'module list'

daneshtarapore commented 5 years ago

Also can you make sure you have pushed your CMake file so I can take a look and try to replicate your errors.