While looking around the lame source code I found that lame has an mp3 frame analyzer, called mp3x. I thought it would be interesting to take a look at it, but quickly ran in problems trying to compile it. This article assumes you have been following the article on compiling mplayer, however, I will try and make it self contained, as possible.
It is assumed you already have the lame source code in the directory /mplayer
lame-3.97b2.tar.gz from lame.sourceforge.net
The first problem, was that current Linux distributions do not include the development files for GTK+, so if you try configuring lame with the --enable-mp3x option, you will get an error like:
If you compile GTK, without the corresponding GLIB files, you will get an error like:
So, download the following extra files and save them in /mplayer
patch-gtk+-1.2.9-1.2.10.gz from www.gtk.org
Do not bother to download glib-1.2.9.tar.gz or patch-glib-1.2.9-1.2.10 as versions 1.2.9 and 1.2.10 do not compile. I got the error:
Unpack the archives:
for a in glib-1.2.8.tar.gz gtk+-1.2.9.tar.gz; do tar zxf $a; done
Patch the 1.2.9 source to get the 1.2.10 version:
patch -p1 < patch-gtk+-1.2.9-1.2.10
GLIB_CONFIG=/usr/local/bin (this might not be necessary, but doesn't hurt)
./configure --disable-glibtest (this option is necessary for it to compile)
./configure --enable-mp3x --with-fileio=sndfile
And now you should have lame and mp3x in /usr/local/bin/.
mp3x probably wasn't worth the effort, but apparently similar problems arise whenever you have to compile a GTK+ 1.2 application, so I figured I would write my experience up, and share it with you all.