You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 10_Getting_Started/15_Binaries/10_Binaries_instructions.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
SOFA provides pre-compiled binaries, eliminating the need to compile the software from its source code. This simplifies the process for users to get started with SOFA. Below are detailed instructions on how to download, install, and execute SOFA:
2
2
3
+
3
4
## Download
4
5
5
6
To download SOFA, visit the official SOFA website at [https://www.sofa-framework.org/download/](https://www.sofa-framework.org/download/). On this page, you will find the latest version of SOFA. There are two types of files available, download one or the other:
@@ -11,14 +12,25 @@ If you choose the zip file option, extract its contents to access the SOFA appli
11
12
12
13
If you require a specific version of SOFA, you can also find previous releases on the official SOFA GitHub repository at [https://github.com/sofa-framework/sofa/releases](https://github.com/sofa-framework/sofa/releases).
13
14
15
+
14
16
## Install
15
17
16
18
If you downloaded an installer file, simply run the file, and follow the installation process as you would for any other software application. This will ensure that SOFA is properly installed on your system.
17
19
18
-
## Execute
19
20
21
+
## Run SOFA
22
+
23
+
### with the SOFA GUI
20
24
To run SOFA, locate and execute the application called `runSofa`. For more detailed information on how to use the application, you can refer to the [page dedicated to runsofa](../../../using-sofa/runsofa/). This documentation will provide you with further guidance on using SOFA effectively.
21
25
26
+
27
+
### within a Python environment
28
+
29
+
To use the binary release of SOFA within a Python3 environment, the section "using Python3" details how to [set up your environment on various operating systems](https://sofapython3.readthedocs.io/en/latest/content/Installation.html#using-python3).
30
+
31
+
Note that the latest SOFA release has been compiled using Python3.12. Make sure to check your Python version before going any further.
32
+
33
+
22
34
### Notes for macOS Users
23
35
24
36
Unfortunately, macOS binaries of SOFA are not code-signed. It means that macOS adds a quarantine flag to the binaries when a user downloads them. The result is a warning window with the message "runSofa cannot be opened because the developer cannot be verified.", preventing to open the application.
7. Fix eventual dependency errors by following CMake messages (see Troubleshooting section below). Do not worry about warnings.
226
+
7. Fix eventual dependency errors by following CMake messages (see Troubleshoot section below). Do not worry about warnings.
227
227
228
228
8. (optional) Customize SOFA via CMake variables
229
229
@@ -250,7 +250,7 @@ Time for a coffee!
250
250
251
251
252
252
253
-
## Troubleshooting CMake errors
253
+
## Troubleshoot CMake errors
254
254
255
255
### Qt detection error
256
256
To solve Qt detection errors, click on **Add Entry** and add
@@ -282,6 +282,19 @@ See our page presenting [video tutorial for compilation on Linux](../../video-tu
282
282
283
283
284
284
285
+
# Run SOFA
286
+
287
+
## with the SOFA GUI
288
+
To run SOFA, locate and execute the application called `runSofa`. For more detailed information on how to use the application, you can refer to the [page dedicated to runsofa](../../../using-sofa/runsofa/). This documentation will provide you with further guidance on using SOFA effectively.
289
+
290
+
291
+
## within a Python environment
292
+
293
+
To use SOFA within a Python3 environment, the section "using Python3" details how to [set up your environment on various operating systems](https://sofapython3.readthedocs.io/en/latest/content/Installation.html#using-python3).
4. Keep "Use default native compilers" and press "Done".
186
186
187
-
5. Fix eventual dependency errors by following CMake messages (see Troubleshooting section below). Do not worry about warnings.
187
+
5. Fix eventual dependency errors by following CMake messages (see Troubleshoot section below). Do not worry about warnings.
188
188
189
189
6. Customize SOFA via CMake variables
190
190
@@ -207,7 +207,7 @@ Time for a coffee!
207
207
208
208
209
209
210
-
## Troubleshooting CMake errors
210
+
## Troubleshoot CMake errors
211
211
212
212
### Qt detection error
213
213
To solve Qt detection errors, click on **Add Entry** and add
@@ -229,3 +229,16 @@ A further dev warning may appear:
229
229
This is just a typo with Qt5CoreMacros.cmake file. It uses COPY\_ONLY
230
230
instead of COPYONLY. Simply edit your Qt5CoreMacros.cmake, replace
231
231
COPY\_ONLY with COPYONLY and **Configure** again.
232
+
233
+
234
+
# Run SOFA
235
+
236
+
## with the SOFA GUI
237
+
To run SOFA, locate and execute the application called `runSofa`. For more detailed information on how to use the application, you can refer to the [page dedicated to runsofa](../../../using-sofa/runsofa/). This documentation will provide you with further guidance on using SOFA effectively.
238
+
239
+
240
+
## within a Python environment
241
+
242
+
To use SOFA within a Python3 environment, the section "using Python3" details how to [set up your environment on various operating systems](https://sofapython3.readthedocs.io/en/latest/content/Installation.html#using-python3).
- If you want to use **another IDE like QtCreator**, select "CodeBlocks - Ninja" (recommended, needs [Ninja](#optional-ninja-build-system)) or "CodeBlocks - NMake".
144
144
Keep "Use default native compilers" and press "Finish".
145
145
146
-
7. Fix eventual dependency errors by following CMake messages (see Troubleshooting section below). Do not worry about warnings.
146
+
7. Fix eventual dependency errors by following CMake messages (see Troubleshoot section below). Do not worry about warnings.
147
147
148
148
- e.g. define the `Eigen3_DIR` with the path where you installed Eigen
149
149
@@ -175,7 +175,7 @@ Example with Ninja:
175
175
Time for a coffee!
176
176
177
177
178
-
## Troubleshooting CMake errors
178
+
## Troubleshoot CMake errors
179
179
180
180
### Qt detection error
181
181
To solve Qt detection errors, click on **Add Entry** and add
@@ -216,3 +216,17 @@ The two scripts `setup-windows_1.bat` and `setup-windows_2.bat` install the mini
216
216
## Compilation tutorial
217
217
218
218
See our page presenting [video tutorial for compilation on Windows](../../video-tutorials/how-to-compile-sofa/#windows).
219
+
220
+
221
+
222
+
# Run SOFA
223
+
224
+
## with the SOFA GUI
225
+
To run SOFA, locate and execute the application called `runSofa`. For more detailed information on how to use the application, you can refer to the [page dedicated to runsofa](../../../using-sofa/runsofa/). This documentation will provide you with further guidance on using SOFA effectively.
226
+
227
+
228
+
## within a Python environment
229
+
230
+
To use SOFA within a Python3 environment, the section "using Python3" details how to [set up your environment on various operating systems](https://sofapython3.readthedocs.io/en/latest/content/Installation.html#using-python3).
Copy file name to clipboardExpand all lines: 15_Using_SOFA/10_runSofa.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,9 @@
1
-
### runSOFA
2
-
3
1
The default compilation of SOFA produces a binary file called **runSofa**, which can be
4
2
found in the folder *%{SOFA\_BUILD\_DIR}/bin*.
5
-
The execution of the binary - either via the terminal or by double-clicking the executable -
6
-
launches a default [XML scene](./../create-your-scene-in-xml) with the name caduceus.scn, using the Qt library.
3
+
The execution of the binary (either via the terminal or by double-clicking the executable) launches a default simulation with the default GUI (using the [SofaGLFW plugin](https://github.com/sofa-framework/SofaGLFW/) since v25.06)
4
+
7
5

6
+
default scene in SofaGLFW-ImGUI](https://www.sofa-framework.org/wp-content/uploads/2025/06/Screenshot-SofaGLFW.png)
9
7
10
8
### Launch runSOFA
11
9
@@ -48,9 +46,8 @@ If using the shipped binaries of SOFA (or the default CMake options when compili
48
46
49
47
### Load and run a specific scene
50
48
51
-
The default scene loaded by **runSofa** is named “caduceus.scn”. This
52
-
scene file can be found in *%{SOFA\_SOURCE\_DIR}/examples/Demos*, along
53
-
with other demo scenes. Let us see now how to load one of these scenes:
49
+
The default scene loaded by **runSofa** is named "*fallingSOFA.scn*". This [XML scene](./../create-your-scene-in-xml) file can be found in *%{SOFA\_SOURCE\_DIR}/examples/Demos*, along with other demo scenes.
50
+
Let us see now how to load one of these scenes:
54
51
55
52
- From the **runSofa** interface, you can select a scene file through
56
53
the “File->Open” Menu (Ctrl+O), and run it by simply pressing the
@@ -59,3 +56,8 @@ with other demo scenes. Let us see now how to load one of these scenes:
59
56
specify the scene file to load as an argument.
60
57
61
58
59
+
### Open a Python script
60
+
61
+
To open a Python script with runSofa, you need to make sure the SofaPython3 plugin is available. To do so, you can click on `Edit > PluginManager` and browse the plugin list. If the plugin SofaPython3 is not present, make sure to add the associated dynamic library using the button `Add`.
62
+
63
+
More about SOFA & Python can be found on the [SofaPython3 documentation](https://sofapython3.readthedocs.io/en/latest).
0 commit comments