OpenManip Development Group


OpenManip


SourceFor
ge.net Logo

A guide for compilation of OpenManip


Please regard that the build process has changed due to changes to the setup of the build environment.

OpenManip uses the QT qmake tool for creation of Makefiles or Windows solution files. Therefore the steps to create a compile setup is the same on both platforms in the beginning.
First of all extract the OpenManip files to a folder on your computer. After that the Makefiles/Solutions have to be created. This requires some pre-conditions to be meet. First of all you need a working Qt installation and a valid environment variable QTDIR set. Beside of that you also need the Qt bin directory to be in the PATH variable, so the qmake can be found.
To configure the build environment you have to set a number of environment variables. These are:

- OPENMANIP_DIR
- OPENSG_DIR
- QTDIR (if not already set)
- QMAKESPEC (if not already set)
- extending the path for the OpenSG lib directory

In the following an example configuration is shown:
for Windows:

set OPENMANIP_DIR=<PathToOpenManipSrcDirectory>
set OPENSG_DIR=<OpenSGPath>
set QTDIR=c:\Programme\qt\dbg\
set QMAKESPEC=c:\Programme\qt\dbg\mkspec\<your-compiler-dependent-mkspec>
set PATH=%PATH%;%QTDIR%\bin
set PATH=%PATH%;%OPENSG_DIR%\lib

for Linux(tcsh):

setenv OPENMANIP_DIR <PathToOpenManipSrcDirectory>
setenv OPENSG_DIR <OpenSGPath>
setenv QTDIR <PathToQtRoot>
setenv QMAKESPEC $QTDIR/mkspec/<your-compiler-dependent-mkspec>
setenv PATH $PATH:$QTDIR/bin
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:$OPENSG_DIR/lib

With this environment variables set you can open a command shell and start creating the solution files, by calling qmake.

c:\myOpenmanipFolder>qmake
c:\myOpenmanipFolder\examples>qmake

This creates the solution/makefiles for the OpenManip project. Once done follow the below instructions to compile for your platform.
Windows: Use VisualStudio 2003.NET or VS2005 to open the solution and compile (ensure proper environment variables)
Linux: Use make to compile the OpenManip library and use make in examples to compile the example viewer.

You can find and execute the "OMViewer" executable in the bin directory of your Openmanip directory.