Help regarding building the "SoftRobots" Plugin and "STLIB" plugin. #5247
Unanswered
SarasVibhuti
asked this question in
Build / Config / Environment
Replies: 1 comment
-
Hi, it's not clear to me if you built only SOFA or if you also checked out SoftRobots, which is in a different repository. What steps did you follow to build SoftRobots? I recommend to read the following doc page: https://sofa-framework.github.io/doc/plugins/build-a-plugin-from-sources/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Respected,
I am using ubuntu 20.04.6 LTS (Focal Fossa). I have tried building the SOFA v22.12.00 (python=3.8.10, pybind11=2.6.2, Qt 5.12.0) for my research project as per this repo "https://github.com/StanfordASL/soft-robot-control". I guess these steps are clear and to the point.
[Run cmake-gui to run the CMake GUI.
Set the source path to $HOME/sofa/src and the build path to $HOME/sofa/build. Make sure the path to installation of Qt is correct by adding an entry CMAKE_PREFIX_PATH and setting it to the appropriate location (e.g. /home/jlorenze/Qt/5.15.0/gcc_64).
Run Configure, and set the compiler according to the instructions here.
Then, add entry SOFA_BUILD_METIS and enable it.
Find the entry SOFA_EXTERNAL_DIRECTORIES and set it to $HOME/sofa-plugins where $HOME is replaced with the actual path (e.g. /home/jlorenze/).
Also, add and enable entry SOFTROBOTS_IGNORE_ERRORS which will allow SoftRobots to compile without the STLIB library.
Next, set filepath entry pybind11_DIR to $HOME/anaconda3/envs/sofa/share/cmake/pybind11.
Ensure the following bool entries are activated (PLUGIN_SOFTROBOTS, PLUGIN_SOFAPYTHON3, PLUGIN_STLIB)
Run Configure again (should complete with no errors), and then run Generate.
To build (use -j flag to use all cores):
cd $HOME/sofa/build
make -j
make install
Test that Sofa launches by running $SOFA_BLD/bin/runSofa -l $SP3_BLD/lib/libSofaPython3.so]
SOFA is launching well with the snake simulation but, issue is even after following the above steps, or the one mentioned in "https://project.inria.fr/softrobot/install-get-started-2/building-on-linux/" SoftRobots plugin is not getting built.
![Screenshot from 2025-01-11 21-43-56](https://private-user-images.githubusercontent.com/49219926/402276283-0a228db2-9b34-4783-b4fc-b9ccae676963.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDQ0NDIsIm5iZiI6MTczOTQ0NDE0MiwicGF0aCI6Ii80OTIxOTkyNi80MDIyNzYyODMtMGEyMjhkYjItOWIzNC00NzgzLWI0ZmMtYjljY2FlNjc2OTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEwNTU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY3NGZlNjNmODU1ZGNhZTZiMGMwNWMwNzgxMTY0ZDA4ZDVmMTI3OTk5YTUwMjJjY2YyMGExMWY5YWYyYzY4YjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Cb7XSh9-nXxWTPDn2IJec6TYV6W3itjQHqun1XrTNY8)
![Screenshot from 2025-01-11 21-45-58](https://private-user-images.githubusercontent.com/49219926/402276418-69266fc4-f76a-44b7-b9cb-fcb138e06ab1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDQ0NDIsIm5iZiI6MTczOTQ0NDE0MiwicGF0aCI6Ii80OTIxOTkyNi80MDIyNzY0MTgtNjkyNjZmYzQtZjc2YS00NGI3LWI5Y2ItZmNiMTM4ZTA2YWIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEwNTU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0NGZjZTllYTlkNmJiMWE5NjE4N2IxNjk1ZjE5MmYzMTcxYjJkMzQ1MGJlMTJjYWIyMzMwNjM1Mzk5NDkwZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.k665tZ2Y4pvvWQqnTQZ9uzdfPiOF8G8YYygy3jCfKVM)
The error reads "[ERROR] [RequiredPlugin(SoftRobots)] Plugin not found: "SoftRobots"".
Directory of Sofa.SimpleApi does not exist under sofa/build/install/lib/cmake. Any attempt to improve upon CMakeLists.txt under the src directory leads to series of numerous errors in cmake-gui configuring.
Please help me with the proper steps in building the SoftRobots plugin so that I can continue with my research. Resolving this will help me to simulate the diamond plugin.
Also, guide me with the correct steps in STLIB building as I am sure that is also not build.
The attached snapshots refers the list of plugins built implying the plugins of SoftRobots and STLIB not built and the terminal errors.
Regards
Beta Was this translation helpful? Give feedback.
All reactions