

{"id":417,"date":"2015-12-15T21:16:03","date_gmt":"2015-12-15T21:16:03","guid":{"rendered":"http:\/\/project.inria.fr\/softrobot\/?page_id=417"},"modified":"2023-09-07T07:38:31","modified_gmt":"2023-09-07T07:38:31","slug":"building-on-linux","status":"publish","type":"page","link":"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-linux\/","title":{"rendered":"Building on Linux"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><strong><a href=\"http:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/OS_Linux_256x256-32.png\"><img loading=\"lazy\" decoding=\"async\" width=\"56\" height=\"56\" class=\" wp-image-552 alignleft\" src=\"http:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/OS_Linux_256x256-32.png\" alt=\"OS_Linux_256x256-32\" srcset=\"https:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/OS_Linux_256x256-32.png 256w, https:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/OS_Linux_256x256-32-150x150.png 150w\" sizes=\"auto, (max-width: 56px) 100vw, 56px\" \/><\/a>Building on Linux<\/strong><\/h1>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1<\/strong>. &nbsp;In the CMake GUI, with the source code path still pointing out the source code of SOFA, set the variable SOFA_EXTERNAL_DIRECTORIES to the path of your SoftRobots plugin (and SoftRobots.Inverse if needed).<\/p>\n\n\n\n<p><strong>Step 2<\/strong>. Finally, you can start the compilation of the plugin by going into the build directory and launching (depending on your build system):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ ninja<\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ make<\/pre>\n\n\n\n<p><strong>Step 3<\/strong>. You can now test the plugin by using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd YOUR_BUILD_DIR\/bin  \n$ runSofa PATH_TO_SoftRobots\/examples\/component\/AN_EXAMPLE    \n$ runSofa PATH_TO_SoftRobots\/examples\/tutorials\/AN_EXAMPLE<\/code><\/pre>\n\n\n\n<p>or \/ and<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd YOUR_BUILD_DIR\/bin \n$ runSofa PATH_TO_SoftRobots.Inverse\/examples\/component\/AN_EXAMPLE<\/code><\/pre>\n\n\n\n<p><strong>NB<\/strong>: The examples provided in the SoftRobots and SoftRobots.Inverse plugins require the SofaPython3 plugin. First you need to add and compile the plugin with SOFA following these <a href=\"https:\/\/www.sofa-framework.org\/community\/doc\/plugins\/fetch-plugin-code-source\/\" target=\"_blank\" rel=\"noopener\">instructions<\/a>. Then, the runSofa application has a plugin manager. If you want a plugin library to be loaded by the application you have two options:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Add to your scene a &#8220;RequiredPlugin&#8221; component (see the examples provided in the plugin for more information)<\/li><li>Manually add it using the &#8220;Edit\/plugin manager&#8221; of the runSofa application (required for SofaPython3).<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Building on Linux Step 1. &nbsp;In the CMake GUI, with the source code path still pointing out the source code of SOFA, set the variable SOFA_EXTERNAL_DIRECTORIES to the path of your SoftRobots plugin (and SoftRobots.Inverse if needed). Step 2. Finally, you can start the compilation of the plugin by going\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-linux\/\"><span>Continue reading<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":850,"featured_media":0,"parent":584,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-417","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/users\/850"}],"replies":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":21,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/417\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/417\/revisions\/1153"}],"up":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/584"}],"wp:attachment":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/media?parent=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}