TwoLAME is MPEG-2 audio encoder. First, compile libsndfile which is used is read sound files in various formats.
tar xzvf libsndfile-1.0.21.tar.gz
cd libsndfile-1.0.21/
./configure --prefix=/mingw --disable-shared --enable-static
make
make install
Then, build twolame.
tar xzvf twolame-0.3.12.tar.gz
cd twolame-0.3.12/
./configure --prefix=/mingw CPPFLAGS='-DLIBTWOLAME_STATIC'
make
make install
When linking a program with a static TwoLAME library, define LIBTWOLAME_STATIC with CPPFLAGS.
CPPFLAGS=' -DLIBTWOLAME_STATIC' ./configure --enable-static --enable-twolame
No comments:
Post a Comment