- This topic has 5 replies, 3 voices, and was last updated 4 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › sofa generating error
Tagged: 64_bits, GCC, Linux_ubuntu, Plugin_SoftRobots, SOFA_1906
Hello
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:
“17”.
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
enable it.
I’m building on ubuntu 16.04 and cmake version 3.16.5 and tried many like gcc 6 gcc 9.2.1
Hi Abdelrahman.
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.
Hello eaparra,
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 sofaRobots
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/1324
Hi Damien
Thank you for your reply
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.