

{"id":419,"date":"2015-12-15T21:16:36","date_gmt":"2015-12-15T21:16:36","guid":{"rendered":"http:\/\/project.inria.fr\/softrobot\/?page_id=419"},"modified":"2023-09-07T07:38:50","modified_gmt":"2023-09-07T07:38:50","slug":"building-on-windows","status":"publish","type":"page","link":"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-windows\/","title":{"rendered":"Building on Windows"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><strong><img loading=\"lazy\" decoding=\"async\" width=\"49\" height=\"49\" class=\" wp-image-554 alignleft\" src=\"http:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/windows-8-300x300.png\" alt=\"windows-8\" srcset=\"https:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/windows-8-300x300.png 300w, https:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/windows-8-150x150.png 150w, https:\/\/project.inria.fr\/softrobot\/files\/2015\/10\/windows-8.png 512w\" sizes=\"auto, (max-width: 49px) 100vw, 49px\" \/>Building on Windows<\/strong><\/h1>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 1<\/strong>. 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><span style=\"font-family: 'Source Sans Pro';\"><strong>Step 2<\/strong>. Finally, you can start the compilation. If you are using VS, go into the build directory and open the solution. If you don&#8217;t want to build SOFA in debug mode, do not forget to change the option on top of the VS window.<\/span><\/p>\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 Windows Step 1. 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. If you are using VS,\u2026<\/p>\n<p> <a class=\"continue-reading-link\" href=\"https:\/\/project.inria.fr\/softrobot\/install-get-started-2\/building-on-windows\/\"><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-419","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/419","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=419"}],"version-history":[{"count":22,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/419\/revisions"}],"predecessor-version":[{"id":1154,"href":"https:\/\/project.inria.fr\/softrobot\/wp-json\/wp\/v2\/pages\/419\/revisions\/1154"}],"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=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}