[libavg-users] building with 10.5, MacPorts, ffmpeg 0.5

Ulrich Hertlein u.hertlein at sandbox.de
Mon May 18 16:46:22 CEST 2009


G'day!

libavg has been on my radar for quite a while but I never had the need to actually do 
something with it.  Until recently that is :-D

Since I expect to do some coding in the engine itself I went for the svn route.
And since most of the dependencies are already installed via MacPorts so I thought I'd try 
to make it work with that instead of installing separate binaries for that.

Here are my experiences with that for future reference:
- the documentation on libavg.de is out of date (e.g. it mentiones CVS)
- the 'bootstrap' script uses a toolchain from a relative directory that doesn't exist on 
my system.  Rewriting the script to use 'glibtoolize' (from MacPorts, but Apple also has 
it in /usr/bin/glibtoolize) works just fine.
- (glibtoolize stands for 'GNU libtoolize' not 'glib toolize'; it's been renamed to avoid 
conflict with Apple's libtool)
- to pick up boost_python and boost_thread libraries I had to run configure with the 
following options:
LDFLAGS=-L/opt/local/lib BOOST_PYTHON_LIBS=-lboost_python-mt ./configure --prefix=/usr/local
- MacPort currently includes ffmpeg 0.5 which complained about one argument to 
sws_getContext being int rather than PixelFormat
- TextEngine looks for fonts.conf in /etc/fonts and (if that fails) in 
<libpath>/etc/fonts/fonts.conf; I've modified it so that it looks in /etc/fonts, 
/usr/local/etc/fonts, /opt/local/etc/fonts (the MacPorts location), and finally in 
getAvgLibPath()/etc/fonts; the search paths could be modified for different environments 
(Linux, Windows, OS X)

I've attached the modified files.

Great stuff!
Cheers,
/uli (Hertlein, not Zadow :-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bootstrap
Url: http://mail.datenhain.de/pipermail/libavg-users/attachments/20090518/43618535/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: FFMpegDecoder.cpp
Url: http://mail.datenhain.de/pipermail/libavg-users/attachments/20090518/43618535/attachment-0003.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TextEngine.cpp
Url: http://mail.datenhain.de/pipermail/libavg-users/attachments/20090518/43618535/attachment-0004.txt 


More information about the libavg-users mailing list