Home › Forum › SOFA › Getting Started › [SOLVED] Getting started with SOFA (build SOFA)
Tagged: Building on Linux, cmake, UBUNTU(16.04 LTS)
- This topic has 11 replies, 7 voices, and was last updated 5 years, 7 months ago by shiva.
-
AuthorPosts
-
10 June 2018 at 23:54 #11182EhabBlocked
Hello Everyone,
I’m new to SOFA, and I’m trying to get started with SOFA so I’m following this page on the website.
build/windows/I’m using
– Windows 10
– Visual studio 2017
– Cmake GUI 3.11.3
– QT 5.11.0
– Boost 1.67.0
– Python 2.7.12I generated the build folder using Cmake. then I built sofa.sln using VS2017.
You can find the output of Cmake and VC2017 build in the folowing link.
output logbut when I open runSofa.exe from “\\SOFA\build\bin\Release\runSofa.exe”it gives me this error.
runSofa.exe – System Error
The code execution cannot proceed because boost_program_options-vc141-mt-x6-1_67.dll was not found. Reinstalling the program may fix this problem.Could you please help ?
Thank you
16 June 2018 at 18:49 #11209HugoKeymasterDear @ealkhteeb
Thank you for reaching us through the forum!
I am sorry that you did not get any reply yet, but things are pretty busy currently around SOFA!I am no Windows expert, but here is what I noticed from your files.
In the CMakeCache, this appears://Path to a file. Boost_INCLUDE_DIR:PATH=C:/local/boost_1_67_0
It seems that you installed correctly boost, but you should definitely set this Boost_DIR variable. I think this is usually automatically detected.
Moreover, regarding the runSofa.exe message, it mentions “… code execution cannot proceed because boost_program_options-vc141-mt-x6-1_67.dll …”
Actually the name of the library should be boost_program_options-vc141-mt-x64-1_67.dll. Do you have any idea about this mis-spelling?I hope these clues will help you in any way.
Best,Hugo
7 November 2018 at 11:11 #12347gl_sofaBlockedHello,
I have similar problem, but on ubuntu 18. I have no errors, but after seccefull command make in terminal i go to /home/guntis/sofa/build/v18.06/bin directory and run ./runSofa
After that I get this output:
guntis@aspire:~/sofa/build/v18.06/bin$ ./runSofa
Created directory: /home/guntis/sofa/build/v18.06/config
Created directory: /home/guntis/sofa/build/v18.06/screenshots
[INFO] [runSofa] Loading automatically plugin list in /home/guntis/sofa/build/v18.06/lib/plugin_list.conf.default
[INFO] [PluginManager] Loaded plugin: /home/guntis/sofa/build/v18.06/lib/libCImgPlugin.so
[INFO] [PluginManager] Loaded plugin: /home/guntis/sofa/build/v18.06/lib/libSofaMiscCollision.so
[INFO] [PluginManager] Loaded plugin: /home/guntis/sofa/build/v18.06/lib/libSofaAllCommonComponents.so
[INFO] [GUIManager] INFO(SofaGUI): lastUsedGUI.ini not found; using default GUI.
[INFO] [BatchGUI] Computing 1000 iterations.[INFO] [BatchGUI] Processing.
[INFO] [BatchGUI] 1000 iterations done in 2.58329 s ( 387.103 FPS).
[INFO] [BatchGUI] 1000 iterations done in 2.58329 s ( 387.103 FPS).
thats it, Sofa das not open. What can I do to run Sofa with GUI?
OS: ubuntu 18
cmake 3.10.2
qt: 5.9.5
python: 2.7 or 3.615 November 2018 at 10:07 #12479GuillaumeKeymasterHi @guntisl,
It seems that runSofa falled back on the batch GUI because it didn’t have any Qt GUI available.
Make sure you compiled the Qt GUI:
– you should have QGLViewer.so and SofaGuiQt.so in lib/
– when you run cmake, you should see “QGLViewer: Using Qt5” and “SofaGUIQt: Using Qt5”Hope that helps,
Guillaume.15 November 2018 at 18:28 #12493EhabBlockedHello,
If someone can record video of building SOFA in different operating systems would be great.
because we followed the exact same steps on Build Sofa page and we failed to build it.
Thank you.
15 November 2018 at 18:30 #12494HugoKeymasterHi @ealkhteeb
This among the multiple things to be done. And you’re right this would help a lot of people. So if anyone finds some time for this before we do, it’s an easy task open for all!
Best
Hugo
22 November 2018 at 17:36 #12516HugoKeymaster20 February 2019 at 16:55 #13090shivaBlockedHi @Hugo
i am new to sofa, and feeling quite helpless in the getting started part.
i have installed the binaries as mentioned in this link Building on Linux i have made the same building as said in the above link. In the cmake-gui, i set the source folder to ‘src‘ and build folder as ‘build‘ which are present inside the sofa directory. But during the configuring in the cmake-gui i am an error as CMakeLists.txt not found.Can you please help a way out of this.i am using UBUNTU(16.04 LTS)
cheers
shiva
20 February 2019 at 20:31 #13094Damien MarchalBlockedHi all,
To have the graphical user interface it is important to compile sofa with Qt5. It may happens that, depending on how it is installed on your systems, it is not detected.
In that case I know two options:
The first one is to stop using cmake but instead use qtcreator (you need a recent version of it) to load the CMakeLists.txt, in that case it will correctly provide the Qt5 installation packages.
The second one is to manually specify to cmake where Qt5 is install on your system as said in this part of the doc: https://www.sofa-framework.org/community/doc/getting-started/build/linux/#qt-detection-errors
It is possible to do that either with cmake-gui or on the cmake command line
like that:cmake ../sofa -G Ninja -DCMAKE_PREFIX_PATH=/opt/Qt/5.12.0/gcc_64/lib/cmake/Qt5
(replacing /opt/Qt/5.12.0/gcc_64/lib/cmake/Qt5 with your own install path)
Hope this will work for you and thanks for the idea of making video tutorial on the build process…any volunteer ?
21 February 2019 at 20:34 #13099shivaBlockedHi @Damien
thats a fantastic idea of making video tutorial of build process.If you can please implement it as soon as possible.
cheers
shiva
19 March 2019 at 17:48 #1322015 May 2019 at 13:23 #13480 -
AuthorPosts
- You must be logged in to reply to this topic.