

{"id":608,"date":"2016-05-31T13:04:11","date_gmt":"2016-05-31T13:04:11","guid":{"rendered":"http:\/\/project.inria.fr\/softrobot\/?page_id=608"},"modified":"2023-09-07T07:38:09","modified_gmt":"2023-09-07T07:38:09","slug":"building-on-osx","status":"publish","type":"page","link":"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-osx\/","title":{"rendered":"Building on MacOS"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><strong><a href=\"http:\/\/project.inria.fr\/softrobot\/files\/2016\/05\/00656684-photo-logo-apple.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"47\" height=\"55\" class=\" wp-image-678 alignleft\" src=\"http:\/\/project.inria.fr\/softrobot\/files\/2016\/05\/00656684-photo-logo-apple-259x300.jpg\" alt=\"Apple logo\" srcset=\"https:\/\/project.inria.fr\/softrobot\/files\/2016\/05\/00656684-photo-logo-apple-259x300.jpg 259w, https:\/\/project.inria.fr\/softrobot\/files\/2016\/05\/00656684-photo-logo-apple-130x150.jpg 130w, https:\/\/project.inria.fr\/softrobot\/files\/2016\/05\/00656684-photo-logo-apple.jpg 518w\" sizes=\"auto, (max-width: 47px) 100vw, 47px\" \/><\/a>Building on MacOS<\/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 MacOS 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 into\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-osx\/\"><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-608","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/608","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=608"}],"version-history":[{"count":17,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/608\/revisions"}],"predecessor-version":[{"id":1152,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/608\/revisions\/1152"}],"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=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}