-
Notifications
You must be signed in to change notification settings - Fork 13
Compiling Installing
OpenGL: make sure you have up-to-date graphics drivers with development headers installed
On Linux you may need some developer tools and headers first, eg: Ubuntu:
sudo apt install build-essential libgl1-mesa-dev libx11-dev zlib1g-dev
Other dependencies are included or optional so shouldn't require installation
make -j4
The main executable is built in the ./bin subdirectory It can be run with
bin/LavaVu
LIBPNG=1
- Use libpng instead of built in routines for PNG image read/write
TIFF=1
- Build with TIFF image read/write support (requires libtiff)
VIDEO=1
- Build with MP4 video output support (requires libavcodec,libavformat,libavutil,libswscale from ffmpeg/libav)
CONFIG=debug
- Debug build
LIBDIR=/path/to/libs
- Adds lib path, can be used to point to a specific libGL location to use
The python bindings will be built automatically using the pre-generated interface files.
To test from Python:
python
> import lavavu
> lv = lavavu.Viewer()
> lv.test()
> lv.display()
To allow access from outside the install directory, add it to your python path, eg:
export PYTHONPATH=${PYTHONPATH}:${HOME}/LavaVu
If swig is installed, the interface can be rebuilt by invoking:
make swig
To use the IPython notebook integration features of LavaVu you need to install a few python packages
- pip install ipython jupyter numpy
More detailed instructions here LavaVu and IPython Install Recipe