Home › Forum › SOFA › Getting Started › [SOLVED] configuration in CMake-GUI
Tagged: 64_bits, SOFA_1806, Windows_10
- This topic has 9 replies, 5 voices, and was last updated 5 years ago by PhoNguyen.
-
AuthorPosts
-
1 September 2018 at 10:47 #11785fatimaBlocked
hi,
I downloaded SOFA and all of its dependencies but I have a problem when I want to Configure it with CMake-GUI.The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Configuring incomplete, errors occurred!Please let me know how to solve this problem.
Thank you,
Fatemeh1 September 2018 at 18:49 #11787BineshBlockedHi @fsharifi135
C & C++ compiler cannot be found.
Have you installed visualcppbuildtools ?Best Wishes,
Behnam Binesh
1 September 2018 at 19:58 #11788fatimaBlockedHi @secretdevil
I installed visual_studio_2015. I checked the folder of SOFA and I found these two files but their name is CMakeCCompilerId and CMakeCXXCompilerId. But I don’t know what I should do to solve this error. Also, I added entries that mentioned in the documentation.
Please let me know how to solve this problem.
thank you,
Fatemeh2 September 2018 at 20:29 #11791HugoKeymasterHi @fsharifi135
@secretdevil is right.
To compile any software, you must specify the compilers used. CMake is the configuration phase before compiling, and CMake checks if you specified the compilers. In you case you did not and no default compiler seems to be installed.Have you check the “visualcppbuildtools” mentioned by secretdevil?
If you do not succeed to pass this compilation step, use the binary version instead.
BestHugo
3 September 2018 at 09:25 #11805fatimaBlockedHi @hugo
Thank you for your response 🙂
I check the “visualcppbuildtools” and reinstall it, But I get the same error.
I don’t understand completely, you said that I can skip this part and work with SOFA without any problem, is it true?
I studied mechanical engineering and don’t know much about programming. So I’m confused about how to work with SOFA. When I open runSofa.exe, I can see just a gui animation part. But in a tutorial video, you mentioned command line for writing the code. I can’t find it 🙁
please guide me.
thank you again
Fatemeh3 September 2018 at 10:15 #11807GuillaumeKeymasterHi Fatima,
First, about the build issue: try running CMake from “VS2017 x64 Native Build Tools Command Prompt”. It is a classic console where all your Visual Studio tools will be accessible.
To do it: Start > type “native command prompt” > Run the x64 one > Runcmake-gui
in itThen, if you just want to discover SOFA and run simulations (the demos first and maybe your own afterwards), you don’t need to build it from source. You can simply download and install the binaries.
Hope that’s clear,
Guillaume.3 September 2018 at 14:19 #11808fatimaBlockedHi @guillaumeparan
Thank you for your attention 🙂
I want to simulate a soft robot for my MSc thesis. I’m still confused. I downloaded the file you said and installed it but when I went to the documentation, I thought that I should build it. So if this action is unnecessary, how can I start a new project in SOFA?
I tried to find SOFA command line that you mentioned in getting started, Run SOFA. But I can’t find it.
Sorry, Maybe my problem is so easy.
Thank you again,
Fatemeh3 September 2018 at 14:29 #11809GuillaumeKeymasterSince you are on Windows, when you installed SOFA with the binaries it created a SOFA entry in “All Programs”. runSofa is in this SOFA entry.
If you want to be able to launch runSofa in your console, you will have to add its location to your system PATH. By default on Windows, runSofa is located in
C:\Users\YOUR_USERNAME\SOFA_v...\bin
.Guillaume.
5 September 2018 at 09:00 #11839fatimaBlockedThank you so much for the help 🙂
Today after 2 or 3 weeks finally I find out How I can work with SOFA.
I wish the best for you and your team.Fatemeh
18 November 2019 at 08:18 #14611PhoNguyenBlockedHi,
I cannot run Sofa in ubuntu 18.04 after downloading its binary in website: v19.06.01. linux.zip. The errors is here:
[INFO] [GUIManager] INFO(SofaGUI): lastUsedGUI.ini not found; using default GUI.
The constructor with a QGLFormat is deprecated, use the regular contructor instead.
/home/phonguyen/SOFA_v19.06.01_Linux/bin/runSofa: symbol lookup error: /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0: undefined symbol: xcb_send_request_with_fds.Please help me to solve this problem.
-
AuthorPosts
- You must be logged in to reply to this topic.