Skip to content
Asger edited this page Nov 27, 2013 · 17 revisions

Installation instructions for MAC OSX (using Xcode) and Windows (using Visual Studio). To build the DSC framework, one needs a compiler which supports c++11 features. Newer versions of the major compilers support the c++11 features used in the DSC framework (including gcc, LLVM, Clang and the newest MSVC compiler). However, note that older versions than Visual Studio 2013 does not support all c++11 features used. Furthermore, the DEMO application uses OpenGL 3.2 for drawing. Therefore, make sure that your graphics driver supports OpenGL 3.2.

MAC OSX (Xcode)

To build the DSC library:

  1. Install Xcode from the App Store.
  2. Clone the DSC GitHub repository or download a zip file with the repository content.
  3. Place the content (and possibly unzip) in some directory (for example /Users/user_name/Documents/DSC/ where 'user_name' is your user name).
  4. Open the DSC Xcode project.
  5. Select the DSC scheme and build.

To run the DEMO application:

  1. Download the GLEW source files from here.
  2. Unzip the GLEW source files in some directory (for example /Users/user_name/Documents/GLEW/ where user_name is your user name).
  3. Open a terminal and cd to the directory where you have placed the GLEW source files.
  4. Type 'sudo make install' and type your password when prompted. The GLEW library should now have been installed.
  5. Open the DSC Xcode project.
  6. Select the DEMO scheme and run.

Windows (Microsoft Visual Studio 2013 or newer)

To build the DSC library:

  1. Install Microsoft Visual Studio 2013 or newer (older versions of VS does not support all of the c++11 features used in the DSC framework)
  2. Clone the DSC GitHub repository or download a zip file with the repository content.
  3. Place the content (and possibly unzip) in some directory (for example c:\Users*user_name*\My Documents\DSC\ where user_name is your user name).
  4. Create an empty project using the CGLA source code located in the CGLA folder.
  5. Compile the CGLA source code as a static library.
  6. Create an empty project using the ISMesh source code located in the is_mesh folder.
  7. Add the CGLA static library to the ISMesh project and set the INCLUDE_PATH to point to the CGLA headers.
  8. Compile the ISMesh source code as a static library
  9. Create an empty project using the DSC source code located in the src folder.
  10. Add the ISMesh static library to the DSC project and set the INCLUDE_PATH to point to the ISMesh headers.
  11. Compile the DSC source code as a static library

To run the DEMO application:

  1. Install GLEW
  2. Install GLUT
  3. Create an empty project using the SOIL source code located in the SOIL folder.
  4. Compile the SOIL source code as a static library.
  5. Create an empty project using the DEMO source code located in the DEMO folder.
  6. Add the DSC, SOIL, GLUT and GLEW static libraries to the DEMO project and set the INCLUDE_PATH to point to the header files for DSC (in the src and is_mesh folders), SOIL (in the SOIL folder), GLUT and GLEW.
  7. Compile the DEMO source code and run.

Clone this wiki locally