Home › Forum › SOFA › Building SOFA › [SOLVED] Error with plugin Flexible
Tagged: #bug #Flexible, 64_bits, GCC, Linux_ubuntu, Plugin_other, SOFA_1912
- This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by amazier.
-
AuthorPosts
-
11 June 2020 at 16:42 #16596amazierBlocked
Dear all,
I successfully downloaded/compiled SOFA and some additional plugins such as Preassembled Mass, Sofa Python, or Compliant.
But we recently have faced a common issue in compiling the Flexible plugin with one of my colleagues.
I tried to compile with both ninja and make but the result is the same.[12/14] Linking CXX shared library lib/libFlexible.so.0.1
FAILED: lib/libFlexible.so.0.1It looks like a linking problem… Any idea?
I’m using gcc9 and cmake 3.16.3
Many thanks and have a good day,Arnaud
11 June 2020 at 17:30 #16601HugoKeymasterHi @amazier and thanks for the report.
(almost) Full log was:
[12/14] Linking CXX shared library lib/libFlexible.so.0.1 FAILED: lib/libFlexible.so.0.1 : && /usr/bin/g++-9 -fPIC -Wall -W -O3 -DNDEBUG -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 ....... -Wl,-rpath-link,/home/arnaud/dev/sofa/build/lib && : /usr/bin/ld: applications/plugins/Flexible/CMakeFiles/Flexible.dir/deformationMapping/LinearMapping_affine.cpp.o: in function sofa::core::objectmodel::TClassInfo<sofa::component::visualmodel::visualmodelimpl>::dynamicCast(sofa::core::objectmodel::Base*) const': LinearMapping_affine.cpp:(.text._ZNK4sofa4core11objectmodel10TClassInfoINS_9component11visualmodel15VisualModelImplEE11dynamicCastEPNS1_4BaseE[_ZNK4sofa4core11objectmodel10TClassInfoINS_9component11visualmodel15VisualModelImplEE11dynamicCastEPNS1_4BaseE]+0xf): undefined reference to typeinfo for sofa::component::visualmodel::VisualModelImpl' /usr/bin/ld: applications/plugins/Flexible/CMakeFiles/Flexible.dir/deformationMapping/LinearMapping_affine.cpp.o: in function sofa::core::objectmodel::TClassInfo</sofa::component::visualmodel::visualmodelimpl><sofa::component::visualmodel::visualmodelimpl>::get()': LinearMapping_affine.cpp:(.text._ZN4sofa4core11objectmodel10TClassInfoINS_9component11visualmodel15VisualModelImplEE3getEv[_ZN4sofa4core11objectmodel10TClassInfoINS_9component11visualmodel15VisualModelImplEE3getEv]+0x46): undefined reference to typeinfo for sofa::component::visualmodel::VisualModelImpl' /usr/bin/ld: applications/plugins/Flexible/CMakeFiles/Flexible.dir/engine/ComputeWeightEngine.cpp.o: in function sofa::core::objectmodel::TClass<sofa::component::visualmodel::VisualModelImpl, std::pair<sofa::core::visual::VisualModel, sofa::component::visualmodel::Vec3State> >::dynamicCast(sofa::core::objectmodel::Base*) const': ComputeWeightEngine.cpp:(.text._ZNK4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEE11dynamicCastEPNS1_4BaseE[_ZNK4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEE11dynamicCastEPNS1_4BaseE]+0xf): undefined reference to typeinfo for sofa::component::visualmodel::VisualModelImpl' /usr/bin/ld: applications/plugins/Flexible/CMakeFiles/Flexible.dir/engine/ComputeWeightEngine.cpp.o: in function sofa::core::objectmodel::TClass<sofa::component::visualmodel::VisualModelImpl, std::pair<sofa::core::visual::VisualModel, sofa::component::visualmodel::Vec3State> >::isInstance(sofa::core::objectmodel::Base*) const': ComputeWeightEngine.cpp:(.text._ZNK4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEE10isInstanceEPNS1_4BaseE[_ZNK4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEE10isInstanceEPNS1_4BaseE]+0x28): undefined reference to typeinfo for sofa::component::visualmodel::VisualModelImpl' /usr/bin/ld: applications/plugins/Flexible/CMakeFiles/Flexible.dir/engine/ComputeWeightEngine.cpp.o: in function sofa::core::objectmodel::TClass<sofa::component::visualmodel::VisualModelImpl, std::pair<sofa::core::visual::VisualModel, sofa::component::visualmodel::Vec3State> >::TClass()': ComputeWeightEngine.cpp:(.text._ZN4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEEC2Ev[_ZN4sofa4core11objectmodel6TClassINS_9component11visualmodel15VisualModelImplESt4pairINS0_6visual11VisualModelENS4_9Vec3StateEEEC5Ev]+0x3f): undefined reference to typeinfo for sofa::component::visualmodel::VisualModelImpl' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
This may come from some missing dependency, thus undefined ref.
I will have a look at it.Hugo
11 June 2020 at 18:07 #16604HugoKeymasterThis was indeed an issue @amazier
This was fixed in PR #1302.Since the v19.12 branch is a release branch, it is frozen when released. Starting from v20.06, a new policy will be applied: backporting all fixes to the previous release. So that the community, you all guys, can rely confidently on a robust and stable release.
Best
Hugo
12 June 2020 at 10:26 #16609amazierBlockedHi Hugo,
Thank you for your reply, I checked out on the master branch and it worked!
Have a nice day, best,Arnaud
-
AuthorPosts
- You must be logged in to reply to this topic.