File: README.md

package info (click to toggle)
opensurgsim 0.7.0-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,600 kB
  • ctags: 16,440
  • sloc: cpp: 135,427; ansic: 4,247; python: 3,934; makefile: 36
file content (154 lines) | stat: -rw-r--r-- 5,201 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Welcome to the OpenSurgSim Project

OpenSurgSim is an open-source project dedicated to real-time surgical
simulation. It offers an open framework that includes the necessary building
blocks for surgical simulations, such as native device support, haptic feedback,
graphics, discrete collision detection and physics simulation. OpenSurgSim is
flexible. Developers can refactor the physics engine, swap models, ODE solvers,
or linear system solvers. For current information and documentation about the
project, please visit our website:

    http://www.opensurgsim.org/

Support can also be found on our public mailing list at
opensurgsim@simquest.com. An archive of the mailing list is at:

    http://groups.google.com/a/simquest.com/group/opensurgsim/

To help get started using OpenSurgSim, use the following quick start guide:

    1. Getting OpenSurgSim
    2. Compiling on GNU/Linux
    3. Compiling on Microsoft Windows
    Appendix: Dependencies


1. Getting OpenSurgSim
======================

OpenSurgSim uses Git for source control, and this is the easiest way to obtain
the most up to date version. Resources for installing and using Git can be found
on Git's website (See Appendix). To obtain OpenSurgSim, run the following
command:

    git clone git://git.assembla.com/OpenSurgSim.git 

This will download the source code for OpenSurgSim and place it in the
OpenSurgSim directory.


2. Compiling on GNU/Linux
=========================

OpenSurgSim has been tested extensively on Debian Unstable (Sid). If you are
using another GNU/Linux distribution, please check your package management
system for the dependencies (see Appendix). For Debian/Ubuntu based systems, the
dependencies are easily installed through apt-get:

    sudo apt-get install libboost-all-dev cmake doxygen libeigen3-dev
    sudo apt-get install google-mock libjs-mathjax libopenscenegraph-dev
    sudo apt-get install libyaml-cpp-dev

To build OpenSurgSim, issue the following commands from the same directory used
to obtain OpenSurgSim (see Section 1)

    mkdir OpenSurgSim/Build
    cd OpenSurgSim/Build
    cmake ../
    make

That's it!


3. Compiling on Microsoft Windows 
=================================

OpenSurgSim has been developed and tested on Microsoft Windows 7, however, other
versions of Windows are likely to work. At least Microsoft Visual Studio 2012 is
required to build OpenSurgSim.

First obtain the source code (Section 1), and install the required dependencies
(Appendix). In addition, the following environment variables will help CMake
automatically find the dependencies, especially if they are not installed to the
default locations.

    BOOST_ROOT  <Path to Boost>
    EIGEN_DIR   <Path to Eigen>
    OSG_ROOT    <Path to OSG>

Also, add %OSG_ROOT%/bin to your PATH environment variable.

Generating the Visual Studio solution file is done with the CMake graphical user
interface. Open CMake, and enter the OpenSurgSim folder (from Section 1) into
the "Where is the source code" field. Then enter a new directory into the "Where
to build the binaries" field. This folder is referred to as BUILD folder for
the purpose of the following steps.

Next, click on the 'Configure' button. This will allow you to select the
compiler (Visual Studio 11 for Visual Studio 2012). If CMake reports “library
not found”, it is likely that your system variables BOOST_ROOT, EIGEN_DIR or
OSG_ROOT are incorrect. Once the configuration is complete without error, click
on the 'Generate' button.

Finally, go to the BUILD folder, open the OpenSurgSim solution file, and build
the ALL_BUILD project.


Appendix: Dependencies
======================

To compile OpenSurgSim, you will need the following dependencies. Many GNU/Linux
distributions already provide this software in their software repositories. If
not, or using Microsoft Windows, please refer to the installation instructions
found on each dependency's homepage. When we know of reliable pre-built Windows packages we will refer to them.

Required Dependencies
---------------------

**Boost**<br>
Homepage: http://www.boost.org/<br>
Modules: chrono, date_time, filesystem, program_options, system, thread<br>
Minimum Version: 1.54<br>
Windows Binaries: http://sourceforge.net/projects/boost/files/boost-binaries/  

**CMake**<br>
Homepage: http://www.cmake.org/<br>
Minimum Version: 2.8  

**Eigen**<br>
Homepage: http://eigen.tuxfamily.org/<br>
Minimum Version: 3.2.1 (GNU/Linux)<br>
Minimum Version: 3.2.3 (Windows)  

**Git**<br>
Homepage: http://www.git-scm.com/<br>
Minimum Version: 1.7.9  

**OpenSceneGraph**<br>
Homepage: http://www.openscenegraph.org/<br>
Modules: osg, osgViewer, osgText, osgUtil, osgDB, osgGA, osgAnimation<br>
Minimum Version: 3.2.0  
  
**yaml-cpp**<br>
Homepage: https://github.com/jbeder/yaml-cpp<br>
Minimum Version: 0.5.2  

Optional Dependencies
---------------------

**Doxygen**<br>
Homepage: http://doxygen.org/<br>
Minimum Version: 1.8

**FreeGlut**<br>
Homepage: http://freeglut.sourceforge.net/<br>
Minimum Version: 2.6.0

**Google Mock**<br>
Homepage: https://code.google.com/p/googlemock/<br>
Minimum Version: 1.7.0

**MathJax**<br>
Homepage: http://www.mathjax.org/<br>
Minimum Version: 2.4