Home › Forum › SOFA › Building SOFA › [SOLVED] Flexible plugin fails to compile in v17.12
Tagged: 64_bits, GCC, Linux_ubuntu, SOFA_1712
- This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago by Hugo.
-
AuthorPosts
-
11 June 2018 at 18:56 #11186NouraBlocked
Hello,
I noticed that Flexible plugin doesn’t compile anymore in v17.12.
Here is my configuration:
Sofa v17.12
Ubuntu 18.04
cmake version 3.10.3and the compilation error:
Scanning dependencies of target Flexible [ 90%] Building CXX object applications/plugins/Flexible/CMakeFiles/Flexible.dir/deformationMapping/TriangleStrainAverageMapping.cpp.o In file included from /home/noura/sofa/v17.12/src/applications/plugins/Flexible/deformationMapping/TriangleStrainAverageMapping.cpp:25:0: /home/noura/sofa/v17.12/src/applications/plugins/Flexible/deformationMapping/TriangleStrainAverageMapping.inl: In member function ‘virtual void sofa::component::mapping::TriangleStrainAverageMapping<TIn, TOut>::init()’: /home/noura/sofa/v17.12/src/applications/plugins/Flexible/deformationMapping/TriangleStrainAverageMapping.inl:62:62: error: ‘searchUp<sofa::component::topology::TriangleSetTopologyContainer>’ is not a member of ‘sofa::component::mapping::TriangleStrainAverageMapping<TIn, TOut>’ triangleContainer = this->core::objectmodel::BaseObject::searchUp<topology::TriangleSetTopologyContainer>(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ applications/plugins/Flexible/CMakeFiles/Flexible.dir/build.make:422: recipe for target 'applications/plugins/Flexible/CMakeFiles/Flexible.dir/deformationMapping/TriangleStrainAverageMapping.cpp.o' failed make[2]: *** [applications/plugins/Flexible/CMakeFiles/Flexible.dir/deformationMapping/TriangleStrainAverageMapping.cpp.o] Error 1 CMakeFiles/Makefile2:10862: recipe for target 'applications/plugins/Flexible/CMakeFiles/Flexible.dir/all' failed make[1]: *** [applications/plugins/Flexible/CMakeFiles/Flexible.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2
I’m Wondering if anyone had the same issue?
Best,
Noura
12 June 2018 at 14:02 #11189HugoKeymasterHi Noura,
Strange that this error is not detected..
The correct typo isSearchUp
and notsearchUp
. Can you give it a try ?Best,
Hugo
13 June 2018 at 11:48 #11201NouraBlockedHi Hugo,
I think that
searchUp
should be called here, as it aBaseObject
function.typename T::SPtr searchUp() const { const BaseContext* context = getContext(); return typename T::SPtr(context->get<T>(BaseContext::SearchUp)); }
I also noticed that this error is gcc dependent:
– using gcc 7.3.0 => compilation error
– using gcc 5.4.0 => compiles fineBest,
Noura
13 June 2018 at 16:40 #11203NouraBlockedJust to conclude before closing the thread: it looks like gcc 7.3.0 issue. I switched to clang 6.0.0 without any problems.
Noura
14 June 2018 at 10:42 #11206HugoKeymasterThanks a lot for the notice Noura
-
AuthorPosts
- You must be logged in to reply to this topic.