3 April 2020 at 1 h 00 min #15638
I’m very new to Sofa framework and i’m trying to build it with SoftRobot plugin. In the cmake-gui sofa is configured normally as i followed every provided step but when i try to generate it i got many cmake errors all like the two examples below under
CMake Error in applications/projects/runSofa/CMakeLists.txt:
The CXX_STANDARD property on target “runSofa” contained an invalid value:
CMake Error in modules/SofaMiscSolver/SofaMiscSolver_test/CMakeLists.txt:
Target “SofaMiscSolver_test” requires the language dialect “CXX17” (with
compiler extensions), but CMake does not know the compile flags to use to
I’m building on ubuntu 16.04 and cmake version 3.16.5 and tried many like gcc 6 gcc 9.2.13 April 2020 at 12 h 34 min #15639eaparraParticipant
- Universidad Politécnica de Madrid
I had the same problem, whe I tried to generete the file with cmake-gui.
Basically, I generete the file with the gcc and cmake that Ubuntu has by defult.
What are g++ 5.4.0 and and cmake-gui 5.2.2.
I tried to generete the files with the unstable SOFA and I just install, over Ubuntu Software, cmake 3.17, and both work fine.
I hope I have been able to help.4 April 2020 at 1 h 30 min #15645
Thank you for your reply. I tried to build it from command line from build directory, but i got the many errors like the following one
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/type_traits:2905:3: error: ‘inline’ can only appear on functions
inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value;
I’m also using the unstable version of sofa as recemonede by sofaRobots7 April 2020 at 11 h 13 min #15666Damien MarchalParticipant
- CNRS/Defrost Team
Hi Abdelrahman and eaparra,
Thanks for posting,
The problem probably happens since activated the support for the C++17 version of the c++language. The change was done just two weeks ago (precisely in PR https://github.com/sofa-framework/sofa/pull/1249). You are right that this problem may be related to the compiler/cmake version.
I will open an issue for that on github
EDIT: The issue is https://github.com/sofa-framework/sofa/issues/13249 April 2020 at 19 h 16 min #15688
Thank you for your reply
- You must be logged in to reply to this topic.