Tasr

From Manta

Table of contents

Build Instructions

This build is based on a Manta project and follows a similar process. Only a few utilities and build tools are included from the Manta project. Tasr uses Opengl displayed in either a wxPython or glut viewer window. Of course IRT support could be added to the build later.

I've tested r52 in icc 9.0 20060222 and gcc 3.3.5 20050117 on SUSE 9.3.

Additional dependencies:

Build a copy of Manta.

  • Refer to the Manta build instructions. The basic build plus swig-python frontend is needed to use wxPython interface. Make sure to produce a 32 bit build with MANTA_REAL==float (which is the default if SSE is detected).

Checkout tasr from the svn repository

 svn co https://code.sci.utah.edu/svn/people/abe/code/tasr tasr

Note that this repository is password protected for commits only.

Build tasr

  • Create a build directory under the tasr/ directory you checked out into. I usually name the build directory after the machine I am using (For example build-tigger32 is a 32 bit build on the machine "tigger".)
  • Enter the build directory and invoke "ccmake .." (specifying the parent directory as the source directory).
  • Press 'c' once. CMake will attempt to configure but produce an error that it can't find Manta:
 CMake Error: Error in cmake code at
 /local/abe/tasr/CMake/FindManta.cmake:78:
 MESSAGE Manually set the paths MANTA_SOURCE_DIR and MANTA_BUILD_PREFIX
 Current CMake stack:
 ...
  • Press 'e' to exit the help message. Then fill in values for MANTA_SOURCE_DIR and MANTA_BUILD_PREFIX. The source directory is the directory you checked out Manta into. The build prefix is the directory you configured and built manta in. If you followed the directions on the wiki and checked out Manta into your home directory you'd use: (substituting your user name and build directory)
 MANTA_BUILD_PREFIX              */local/abe/Manta/build-demo
 MANTA_SOURCE_DIR                */local/abe/Manta
  • Fill in the third party include and lib paths. The build script will search for GLEW and swig here (as well as in your system path). Note that the common directory prefix should match the ./configure --prefix= you used for these dependencies.
THIRD_PARTY_INCLUDE_PATH        */local/abe/build/include
THIRD_PARTY_LIBRARY_PATH        */local/abe/build/lib
  • Now press 'c' several times, the build script should locate swig, glew, python and Manta. The configure screen should look like this:
 BUILD_SWIG_PYTHON                ON  
 CMAKE_BACKWARDS_COMPATIBILITY    2.4
 CMAKE_BUILD_TYPE                 Release
 CMAKE_INSTALL_PREFIX             /usr/local
 MANTA_BUILD_PREFIX               /local/abe/Manta/build-tigger32
 MANTA_SOURCE_DIR                 /local/abe/Manta
 PYTHON_EXECUTABLE                /usr/bin/python2.4
 PYTHON_INCLUDE_PATH              /usr/include/python2.4
 PYTHON_LIBRARY                   /usr/lib/python2.4/config/libpython2.4.a
 SCI_ASSERTION_LEVEL              0
 SWIG_DIR                         /usr/lib/swig1.3
 SWIG_EXECUTABLE                  /local/abe/build-tigger32/bin/swig
 THIRD_PARTY_INCLUDE_PATH         /local/abe/build-tigger32/include
 THIRD_PARTY_LIBRARY_PATH         /local/abe/build-tigger32/lib

Note that if python and swig are not found you can switch the BUILD_SWIG_PYTHON variable to OFF and still build the project using the glut viewer.

  • Now press 'g' to generate build files.
  • After ccmake exits, issue make/gmake in the build directory.
  • Run the test viewer:
 python ../python/viewer.py -f ~/models/defender-ext.obj

Or using the glut viewer:

 bin/viewer -f ~/models/defender-ext.obj

Mac OSX

I managed to get the python/swig stuff working on the mac tonight. Here's what I had to install:

1. wxMac-2.6.3

 ./configure --prefix=/Users/abe/build-tiger86 --with-mac --with-opengl
 make ; make install

2. wxPython-src-2.7.2.0

 ./configure --prefix=/Users/abe/build-tiger86
 make ; make install

3. swig-1.3.30

 ./configure --prefix=/Users/abe/build-tiger86
 make ; make install

I installed each of these from source on top of the default python 2.3 that comes with tiger. I removed some of the python code that was calling OpenGL so there is no longer a dependency on that python package which was problematic. Note that there is an OpenGL/Glut SDK on the OSX install disk which must be installed.