|
Homepage: http://linux.50webs.org/ 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 glib-1.2.8.tar.gz gtk+-1.2.9.tar.gz 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 gunzip patch-gtk+-1.2.9-1.2.10.gz Patch the 1.2.9 source to get the 1.2.10 version: cd /mplayer patch -p1 < patch-gtk+-1.2.9-1.2.10 cd /mplayer/glib-1.2.8 ./configure make make install GLIB_CONFIG=/usr/local/bin (this might not be necessary, but doesn't hurt) LD_LIBRARY_PATH=/usr/local/lib/ cd /mplayer/gtk+-1.2.9 ./configure --disable-glibtest (this option is necessary for it to compile) make make install cd /mplayer/lame-3.97 ./configure --enable-mp3x --with-fileio=sndfile make make install 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. |