Surgical-Simulator-Building-Instructions

From KitwarePublic
Jump to navigationJump to search

__NOTITLE__


Home




Instructions




Report Problems




Contact Us

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 : 7z zip archive
  • Qt 4.8.3 x64 for Microsoft Visual Studio 2010 : 7z or zip 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.

  1. Retrieve source:
    git clone git@github.com:andinet/SOFA
  2. Configure with CMake >= 2.8.10. Run CMake following the instruction in the Sofa Wiki
  3. Open the solution file generated by CMake with Visual Studio and Build SOFA
  4. The executable runSofa.exe is found in SOFA-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.

  1. Retrieve source:
    git clone git@github.com:andinet/SOFA
  2. Configure with CMake >= 2.8.10. Run CMake following the instruction in the Sofa Wiki
  3. The executable runSofa is found in SOFA-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.

  1. Retrieve source:
    git clone git@github.com:andinet/SOFA
  2. Configure with CMake >= 2.8.10. Run CMake following the instruction in the Sofa WIii
  3. Open the solution file generated by CMake with Visual Studio and Build SOFA
  4. To run sofa after is built
$ source config.sh
$ runSofa