Home > penumbrabuild

penumbrabuild

Penumbrabuild is a project mainly written in Shell, it's free.

Build script for PenumbraOverture using waf

README

PenumbraOverture build script using waf.

Requirements

  • python (for waf)
  • OpenAL with freealut
  • SDL plus SDL_image and SDL_ttf
  • libvorbis and libtheora
  • OpenGL headers and libs
  • angelscript-2.18
  • Newton-2, from svn
  • NVIDIA Cg toolkit

Build

Configure with

./waf configure

If you have headers/libraries in non standard location, you have to specify them here. For example on my Gentoo box I need this to find Cg:

CXXFLAGS=-I/opt/nvidia-cg-toolkit/include 
  LDFLAGS=-L/opt/nvidia-cg-toolkit/lib    
  ./waf configure

Build with

./waf

This will build PenumbraOverture and all tests and tools (except the C# ones). To only build penumbra, use

./waf --targets=penumbraoverture

Please note that by default this build script build shared libraries. This means that to run a compiled app, you need to specify LD_LIBRARY_PATH to point to the build directory. Assuming $PENUMBRABUILD contains the location of the repository, you can run penumbra like:

$ cd /path/to/PenumbraOverture
$ LD_LIBRARY_PATH=$PENUMBRABUILD/build $PENUMBRABUILD/build/penumbraoverture

(Similary for tools and test)

There is also a Doxyfile, if you want a nice Doxygen documentation (although, the code is not really documented).

Previous:tpserver-py