Home › Forum › SOFA › Building SOFA › [SOLVED] compiling build.ninja in ubuntu
Tagged: 64_bits, GCC, Linux_ubuntu, SOFA_1712
- This topic has 11 replies, 3 voices, and was last updated 6 years, 5 months ago by Zahra.
-
AuthorPosts
-
8 May 2018 at 12:12 #11001ZahraBlocked
Hi,
I have followed the instructions on the documentation to install SOFA 17.12 on Ubuntu 16.04 until the compile section. The “build.ninja” is created in the build folder, but as I go to the build folder in the terminal and type ninja to compile, I get this message: “ninja: no work to do.”
Can anybody tell me what is the problem?Best,
Zahra
9 May 2018 at 14:17 #11002HugoKeymasterHi Zahra !
Great to hear from you, I need a bit more details here.
– Could you detail us the folder architecture ? (src repo, build repo)
– What are all the commands you already ran ?– Did you configure successfully the project (run the command from the BUILD_DIR: cmake-gui PATH_TO_SRC_DIR)
Best,
Hugo
10 May 2018 at 13:08 #11006ZahraBlockedHi Hugo,
Thank you 🙂
– There is a folder named sofa which contains two folders, src and build. The ‘build’ contains the ‘v17.12’ folder which is my final build directory.
– I ran all the instructions mentioned in this page: https://www.sofa-framework.org/community/doc/getting-started/build/linux/ except the “clang” section (I am using GCC).
– Yes, in cmake-gui, I defined the source path as: /home/zahra/sofa/src and the build path as: /home/zahra/sofa/build/v17.12. The build.ninja file is created in my build folder.
At this point I should mention that I succeeded in compiling by ninja: When I removed the entry “CMAKE_PREFIX_PATH” from cmake, the file compiled with no error. Now, my problem is that no .scn file run in the modeler, even the scenes in the tutorial do not run.
– emm…Must I also set up the QtCreator besides compiling by ninja?(as explained in the aforementioned page?)
– May the problem be that, cmake says that it “Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)”? (It does not seem like an error in cmake).
– The only change I did to cmake was adding SOFAPYTHON plugin. May it be the cause of not running the scenes?
10 May 2018 at 14:05 #11007NouraBlockedHi Zahra,
” – May the problem be that, cmake says that it “Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)”? (It does not seem like an error in cmake).”
To remove the previous error message, verify that you have GLUT installed on your ubuntu.
sudo apt-get install freeglut3-dev
I assume this could be an issue.
Best,
Noura
10 May 2018 at 14:31 #11008ZahraBlockedHi Naura,
Thank you for your reply. I installed GLUT, but the scenes still do not run…
10 May 2018 at 14:44 #11009NouraBlockedCould you share the error message that you get when you run a sample scene or just when you type runSofa ?
10 May 2018 at 15:03 #11010ZahraBlockedAmmm…Sorry but I am new in Linux! when I open modeler, there is just one window! where I should look for the error messages? In the terminal? If so, when I run the scene, nothing shows in the terminal.
by typing “/home/zahra/sofa/build/v17.12/bin/runSofa”, I receive the following messages:
~/sofa/build/v17.12/bin$ /home/zahra/sofa/build/v17.12/bin/runSofa
[INFO] [runSofa] Loading automatically default plugin list from /home/zahra/sofa/build/v17.12/lib/plugin_list.conf.default
[INFO] [SofaPython] Added ‘/home/zahra/sofa/src/applications/plugins/SofaPython/python’ to sys.path
[INFO] [SofaPython] Added ‘/home/zahra/sofa/src/applications/plugins/PSL/python’ to sys.path
[INFO] [SofaPython] Added ‘/home/zahra/sofa/src/applications/plugins/SofaTest/python’ to sys.path
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libSofaPython.so
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libCImgPlugin.so
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libSofaSphFluid.so
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libSofaMiscCollision.so
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libPSL.so
[INFO] [PluginManager] Loaded plugin: /home/zahra/sofa/build/v17.12/lib/libSofaAllCommonComponents.so
The constructor with a QGLFormat is deprecated, use the regular contructor instead.10 May 2018 at 15:52 #11011NouraBlockedYes, I meant the error message you get on the terminal when you type runSofa.
According to the output you posted, everything sounds working fine for me (i.e. You didn’t got any error message and the deprecated constructor seems to be just a warning).
Sorry! I have no clue why you don’t get the default scene running properly.Noura
Last thing, you asked if you have to install QtCreator. This is not required, but you should have the library (Qt >= 5.5.0) installed on your OS as mentioned in the build tutorial.
15 May 2018 at 17:18 #11055ZahraBlockedHi again,
Thank you Noura for your help. I should add that now when I type “runSofa”, the Caduceous scene opens in the run window and it works properly as I animate it. However, when I type “Modeler”, the modeler opens. When I open a scene in a modeler, either from tutorial or from my own scenes and I hit the run button, I get this error:FROM SOFA [ERR] >> unrecognised option ‘-t’
Sofa exited safely.
Can anyone help me regarding this issue?
Best,
Zahra22 May 2018 at 13:16 #11071ZahraBlockedEmm… I have found this post:
which has the same problem as mine and my problem solved. I wish it would have been mentioned somewhere in the installation document that the modeler does not work properly in the version 17.12. It would be a save in time.
Best,
Zahra
23 May 2018 at 18:46 #11092HugoKeymasterHi @zahra,
you are perfectly right, there should be a warning when activating the Modeler project.
I added the following PR to add this.Note that we are planning to build a new Modeler, all we need is to find enough time and resources to do it!
Best,
Hugo
27 June 2018 at 14:20 #11239ZahraBlockedDear Hugo,
I appreciate your consideration.
Best,
Zahra
-
AuthorPosts
- You must be logged in to reply to this topic.