Build Instructions for OSX

These instructions were written with these assumptions.  On a clean OSX install:

  • VHToolkit version 0.9.30
  • OSX version 10.8.2
  • Xcode version 4.5.2
  • iOS version 6.1

The instructions are similar to the ones found on the Smartbody build instructions page, but differ slightly in that we build everything for 32-bit.  This is because Unity is still a 32-bit application and needs to have 32-bit libraries.  The goal at some point is to build combined 32/64-bit libraries and have one unified set of instructions.

Building the Toolkit

  • Following and
    • Build Festival
    • Build Smartbody
      • (if needed) OpenGL.  Cannot find gl.h.
        • Change #include <GL/gl.h>  to  <OpenGL/gl.h>
        • Change #include <GL/glu.h>  to  <OpenGL/glu.h>
        • In the following files:
          • sr_gl.cpp
          • heightfield.cpp
          • ObjectManipulationHandle.cpp
          • PawnPosControl.cpp
          • PositionControl.cpp
          • RotationControl.cpp
          • fltk_viewer.cpp
          • ParamAnimRunTimeEditor.cpp
          • VisualizationView.cpp

  • Build Unity Projects

    • (if needed) Xcode error.  If you get an error in Xcode like “Could not stat active Xcode path”
      • In Xcode, go to Preferences -> Locations -> Command Line Tools – set it to the proper version and location