Home › Forum › SOFA › Building SOFA › sofa generating error
Tagged: 64_bits, GCC, Linux_ubuntu, Plugin_SoftRobots, SOFA_1906
- This topic has 5 replies, 3 voices, and was last updated 5 years, 6 months ago by Abdelrahman. 
- 
		AuthorPosts
- 
		
			
				
3 April 2020 at 01:00 #15638Abdelrahman BlockedHello 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 3 April 2020 at 12:34 #15639eaparra BlockedHi 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. 4 April 2020 at 01:30 #15645Abdelrahman BlockedHello 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 7 April 2020 at 11:13 #15666Damien Marchal BlockedHi 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 9 April 2020 at 19:16 #15688Abdelrahman BlockedHi Damien Thank you for your reply 
- 
		AuthorPosts
- You must be logged in to reply to this topic.

