My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowToBuild  
Build instructions
Phase-Implementation
Updated Jun 12, 2011 by m...@paus.ch

Introduction

The build system is based on CMake, so it should be easy to build the project on your platform.


Preparation

Before you can build the library you should install following tools:

Boost build tips for OSX(32/64bit version):

> cd boost_folderXY
> sudo ./bjam link=static architecture=x86 address-model=32_64 install

Boost build tips for Linux(64bit version):

> cd boost_folderXY
> ./bjam link=static cxxflags=-fPIC

I did run into troubles with the shared lib version of boost and the static lib version. Also i did get problems when i linked the static lib version to SimpleOpenNI without the -fPIC flag.


Windows

On windows i only used Visual Studio 2008

  • Download the souces from the svn
  • Open a terminal and go into the 'SimpleOpenNI' folder
  • Type those commands:
  • > mkdir build
    > cd build
    > cmake -DEIGEN3D_INCLUDE='path to the Eigen folder' -DBOOST_ROOT='path to the Boost folder' ..
  • Now you should find in the 'SimpleOpenNI/build' folder the Visual Studio Projectfile
  • Open 'SimpleOpenNI.sln' and build it

OSX 32/64bit

On OSX you need Xcode in order to compile the sources. Processing should be installed in the applications-folder.

  • Download the souces from the svn
  • Open a terminal and go into the 'SimpleOpenNI' folder
  • Change the paths to your local ones in those two files: buildOsx.sh, installOsx.sh (There is more info in the files)
  • Type those commands:
  • > ./buildOsx.sh
    > ./installOsx.sh

UNIX/Linux

  • Download the souces from the svn
  • Open a terminal and go into the 'SimpleOpenNI' folder
  • Change the paths to your local ones in those two files: buildLinux64.sh or buildLinux32, installLinux.sh (There is more info in the files)
  • Type those commands:
  • > ./buildLinux64.sh
    > ./installLinux.sh

Sign in to add a comment
Powered by Google Project Hosting