Installing
libavg currently runs on i386 systems running Linux or Mac OS X. There are packages for Ubuntu and Debian Linux as well as Mac OS X. For other systems, you'll have to download the source and compile by hand.
Mac OS X
Download the installer from the download page and double-click on libavg-mac-leopard-intel.0.8.0.dmg.
To see if everything is running correctly, open a terminal, cd to /Library/Python/2.5/site-packages/libavg/avg/test and call ./Test.py. You should see some test graphics flicker on the screen. The last message in the terminal should read 'OK'.
Debian Linux
libavg itself can be installed with apt-get install python-libavg. However, it needs ffmpeg, which will only be found if deb http://www.debian-multimedia.org sid main is added to /etc/apt/sources.list first.
Ubuntu Linux
libavg itself can be installed with apt-get install python-libavg. However, it needs ffmpeg, which will only be found if deb http://packages.medibuntu.org/ hardy free non-free is added to /etc/apt/sources.list first. (The exact url will vary according to the ubuntu release you're using.)
Source install
Note: Additional notes on installing libavg from source for specific operating systems are in the wiki.
libavg uses a lot of third-party libraries. What follows is a list of packages you'll need. The package names are the names of the gentoo packages needed. For other distributions, the list should enable you to find what's needed. The version numbers are just guidelines. In most cases, libavg checks during configure that these libraries are installed, so you'll probably get configure failures if they aren't.
- libjpeg, libtiff, zlib, libpng (any recent version).
- GraphicsMagick (1.1.10).
- A recent version of ffmpeg, including libavcodec, libavformat and libavutil.
- libsdl (1.2.13).
- gettext (0.14.6).
- glib (2.14.1)
- Working OpenGL in some form or other.
- libxml2 (2.6.19.)
- libfreetype (2.3.5)
- expat (2.0.0)
- fontconfig (2.5.0)
- pango (1.18.2)
- Optional: libdc1394 for Firewire digital camera support. (1.1.0 and 2.0.1)
- python 2.5 or newer.
- boost-python, boost-thread (1.34.0)
Once these libraries are installed, you can get libavg-x.y.z.tar.gz from the download page, unpack it and call
./configure make make install
If you do a cvs checkout instead of a download, you need to call ./bootstrap before calling configure. Running bootstrap requires a working autotools setup: autoconf, automake and libtool need to be installed. If you get bootstrap failures, chances are you're using different versions of these tools than we are: autoconf 2.59, automake 1.9.6, libtool 1.5.18.
Troubleshooting Linux Direct Rendering
You can test if OpenGL is running accelerated by running glxinfo. If it sais "Direct Rendering: yes", everything is set. If not, you'll have to google for instructions involving your graphics card and your distribution. libavg will run with unaccelerated OpenGL, but that's slow. Really slow.

Showcase




