Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help regarding building the "SoftRobots" Plugin and "STLIB" plugin. #5213

Open
SarasVibhuti opened this issue Jan 11, 2025 · 0 comments
Open

Comments

@SarasVibhuti
Copy link

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.
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
Screenshot from 2025-01-11 21-43-56
Screenshot from 2025-01-11 21-45-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant