Version 2 (coder, 01/11/2013 22:52) → Version 3/6 (coder, 01/11/2013 23:40)


This page describe how to fulfill libavg dependencies using MacPorts. An alternative method (which uses self-contained dependencies) is described here: [[MacSourceInstall]].

h1. Installing the required dependencies

* Install XCode ( We tested XCode 5.0.1.
* Install MacPorts (
* Install the following packages:

$ sudo port install boost +python27
$ sudo port install gdk-pixbuf2 gdk-pixbuf autoconf automake ffmpeg libsdl pango subversion \
libtool libdc1394 librsvg python_select

* Make sure MacPort has correctly added /opt/local/bin to the PATH (usually on .profile)
* Switch to MacPort's python 2.7

$ sudo python_select python27

h1. Fetching and compiling libavg

h2. Checkout

$ svn co
$ </pre>

h2. Bootstrap

cd libavg
$ ./bootstrap
$ BOOST_PYTHON_LIBS=boost_python-mt </pre>

h2. Configure

./configure --with-boost-thread=-mt

h2. Compile

with (adjust the concurrency parameter to the number of CPU cores you have + 1):

$ make -j3

h2. Test

If everything runs fine, you may run the unit tests. Be aware that at first time startup, fontconfig requires several seconds to initialize its fonts cache:

$ make check

h1. Installation

Staging libavg is only matter of issuing a make install

_install_. Anyway, there is a present issue with the install location, which defaults to _/usr/local/lib/python2.7/site-packages/libavg_ instead of _/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages_. _/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.6/site-packages_.

In order to circumvent this problem, add the directory _/usr/local/lib/python2.6/site-packages_ to PYTHONPATH:

export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

Add this line to _.profile_ to make it permanent.