Get MinGW (if you didn't have)
First and foremost, have MinGW running on your computer, by downloading the installer from here.
Choose to download the latest repository catalogue, and choose to install the following components:
- C compilier
- C++ compiler
- MSYS Basic System
- MinGW Developer Toolkit
After installation, open a MinGW shell by Start>All Programs>MinGW>MinGW Shell then type
mingw-get install gccthen
mingw-get install mingw-utilsTest if your MinGW is working by typing.
gcc -versionSomething like this should appear.
Then, install the Yasm assembler for optimal compilation of LAME by going to here (Win32.exe) and putting the .exe to the bin folder of MinGW.
Get source of LAME
By going here.
Extract the tarball using 7-zip or other decompression software and place it somewhere.
Compile LAME
At the MinGW shell, change working directory to the lame folder you extracted by typing
cd C:/Users/username/lame-3.99.5Note the slash.
Then, type this
./configure --prefix=/mingw --enable-export=fullThen to start compile type
makethen
make installThe resulting .exe of LAME is located in the bin folder of MinGW (located at the place you installed MinGW)
To make the .dll of LAME, for use as plugin in a lot of open source audio software,change directory by typing
C:/Users/username/lame-3.99.5/libmp3lame/.libsthen use a2dll to make the dll by typing
a2dll libmp3lame.a -o lame_enc.dllThe .dll is located in the .libs folder.
The Binaries
If you just want the binaries and dll (for use in Audacity etc.), you can get them here.
lame.exe
lame_enc.dll
In last version this man does not work. I am wondering how to compile 3.100 or 3.99 in MinGW 0.6.3 Win10 x64.
./configure --prefix=/mingw --enable-export=full
configure: WARNING: unrecognized options: --enable-export
Then on make receive: (same on 3.99.5)
Cannot export lame_init_old: symbol not defined
It seemed like problem of x64-x86 imcapatibility...