|
|
This write up is to get windows users started. This how-to is based on the assumption that you will work with eclipse, an open source integrated development environment. With eclipse you have, git, compilation, c++ and xml editing all in one program.
|
|
|
|
|
|
1) Install the gcc compilers
|
|
|
1) Install the gcc compilers.
|
|
|
Windows comes without a compiler for c++, so we will install one. Windows also lacks gnu make, which is a handy program that we use to manage the compilation of the many different files. Both deficits can be fixed by installing mingw-64 (not 32). Download mingw-w64-install.exe from [here](https://sourceforge.net/projects/mingw-w64/files/latest/download) and run the exe.
|
|
|
|
|
|
2) Add MinGW32 to your $PATH
|
|
|
2) Add MinGW32 to your $PATH.
|
|
|
In order for eclipse and powershell to find the mingw programs, they installation directory needs to be added to the windows Path. Hit the windows button and type
|
|
|
"edit the system environment variables". Click on environmental variables, click path, click new, and add path of installed directory (C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin)
|
|
|
|
|
|
3) Check the installation
|
|
|
3) Check the installation.
|
|
|
open powershell and type the commando
|
|
|
`echo $env:Path `
|
|
|
The path should include the installed mingw directory.
|
... | ... | @@ -15,7 +15,7 @@ The path should include the installed mingw directory. |
|
|
4) Check presence of g++ by typing in the powershell
|
|
|
`g++ -v`
|
|
|
|
|
|
5) Rename mingw32-make to make
|
|
|
5) Rename mingw32-make to make.
|
|
|
Go to 'C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin'
|
|
|
and rename mingw32-make.exe to simply make.exe.
|
|
|
|
... | ... | @@ -27,10 +27,10 @@ and rename mingw32-make.exe to simply make.exe. |
|
|
Go to workbench
|
|
|
Open git perspective (window->perspective->open perspective->other)
|
|
|
|
|
|
9) Clone the OpenSimRoot repository
|
|
|
9) Clone the OpenSimRoot repository.
|
|
|
Copy the following address (ctrl+c) https://gitlab.com/rootmodels/OpenSimRoot.git and click clone in the eclipse git perspective. Fill out you gitlab credentials and click next till finished.
|
|
|
|
|
|
10) Import the eclipse project
|
|
|
10) Import the eclipse project.
|
|
|
Right click on working tree in the cloned OpenSimRoot folder and choose to import the eclipse project in OpenSimRoot/OpenSimRoot
|
|
|
Switch back to c++ perspective, you should have an OpenSimRoot project.
|
|
|
|
... | ... | @@ -47,11 +47,9 @@ Trying to load model from file: OK |
|
|
Running modules:
|
|
|
Running modules: 0.0/28.0 days. Mem 20.0 mB. #obj.=606 x64b/obj.=4406.6
|
|
|
1.0/28.0 days. Mem 23.0 mB. #obj.=726 x64b/obj.=4331.2
|
|
|
2.0/28.0 days. Mem 27.0 mB. #obj.=846 x64b/obj.=4261.3
|
|
|
3.0/28.0 days. Mem 33.0 mB. #obj.=996 x64b/obj.=4441.0
|
|
|
4.0/28.0 days. Mem 44.0 mB. #obj.=1056 x64b/obj.=5582.7
|
|
|
...
|
|
|
28.0/28.0 days. Mem 44.0 mB. #obj.=1056 x64b/obj.=5582.7
|
|
|
|
|
|
PS C:\Users\j.postma\osrtest>
|
|
|
```
|
|
|
|
|
|
|
... | ... | @@ -69,7 +67,7 @@ Todo this go to the eclipse project properties. In C/C++ build -> settings -> To |
|
|
|
|
|
4) Build is also possible in the power shell by issuing the make command inside the StaticBuild_win64 folder.
|
|
|
|
|
|
|
|
|
5) OpenSimRoot produces a tab delimited file with data, and optionally vtp files which can be opened with Paraview, a free 3D visualization software.
|
|
|
|
|
|
|
|
|
|
... | ... | |