Surgical-Simulator-Building-Instructions
System requirements
Here is a non-exhaustive list of platforms Sofa is supported.
- Windows
- 32bits or 64bits
- XP, Vista, 7, 8
- Linux
- 64 bits only
- Ubuntu 10.04 (and up)
- Mac
- 64 bits only
- Mac OS X Lion (and up)
Building from source
Windows
Sofa uses the Qt framework for its graphical user interface. You need to download it from the QT website. If you want to use the 64bit version, you need the 64bit version of Qt. You won't find a 64bit version of Qt for all Visual Studio versions. Thankfully, the Sofa folks have made them available, just extract in the SOFA source directory:
- Qt 4.8.3 x64 for Microsoft Visual Studio 2008 : <a href="https://gforge.inria.fr/frs/download.php/31789/qt4.8.3_msvc2008_x64.7z">7z</a> or <a href="https://gforge.inria.fr/frs/download.php/31788/qt4.8.3_msvc2008_x64.zip">zip</a> archive
- Qt 4.8.3 x64 for Microsoft Visual Studio 2010 : <a href="https://gforge.inria.fr/frs/download.php/31791/qt4.8.3_msvc2010_x64.7z">7z</a> or <a href="https://gforge.inria.fr/frs/download.php/31790/qt4.8.3_msvc2010_x64.zip">zip</a> archive
You will also need the external dependencies: 7z or zip. Download them and extract in the SOFA top level source directory.
This is all you need to build SOFA in Windows.
- Retrieve source:
git clone git@github.com:andinet/SOFA
- Configure with CMake >= 2.8.10. Run CMake following the instruction in the Sofa Wiki
- Open the solution file generated by CMake with Visual Studio and Build SOFA
- The executable
runSofa.exe
is found inSOFA-build/bin
Linux
If your Linux distribution do not provide the packages for the Qt framework you will need to download it from the QT website and install it in your system.
You also need to install the following dependencies (the package names are for the Ubuntu, other distributions may use other names):
sudo apt-get install build-essential cmake-gui libqt4-dev libqt4-opengl-dev libglew-dev freeglut3-dev libpng-dev libxml2-dev
This is all you need to build SOFA in Linux.
- Retrieve source:
git clone git@github.com:andinet/SOFA
- Configure with CMake >= 2.8.10. Run CMake following the instruction in the Sofa Wiki
- The executable
runSofa
is found inSOFA-build/bin
MacOS
You need to have the command line tools installed via XCode (make, git, svn, etc).
If your Linux distribution do not provide the packages for the Qt framework you will need to download it from the QT website and install it in your system. You also need the dependencies and unzip in SOFA's source directory. This is all you need to build SOFA in Linux.