Compiling LAME for Windows on Windows

This procedure works, after trial and error from following this guide.Refined some steps.

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 gcc
 then
mingw-get install mingw-utils
Test if your MinGW is working by typing.
gcc -version
Something 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.5
Note the slash.

Then, type this
./configure --prefix=/mingw --enable-export=full
 Then to start compile type
make
then
make install
The 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/.libs
 then  use a2dll to make the dll by typing
a2dll libmp3lame.a -o lame_enc.dll
The .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


4 comments:

September 19, 2018 at 1:22 AM Unknown

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...

April 18, 2019 at 1:38 AM midn

replica Cartier watches uk online shop, combining elegant style and cutting-edge technology, a variety of styles of replica Cartier santos watches uk online shop, the pointer walks between your exclusive taste style.

December 29, 2019 at 8:58 PM James

@unknown...if you're out there...I think it's a typo. The option should be --enable-expopt=full. it enables spooky and powerful experimental optimizations! ./configure --help says so at least.

December 18, 2020 at 2:22 AM harpal

I'm getting error message when I use ./configure ."sh: ./configure: No such file or directory".
I followed all the steps mentioned above, still ending up with problem. Would be great help if you can help me out of it.

Post a Comment

techteendaily One Line Description Avatar Logo a one place stopshop for some of your tech needs. Though this blog is not updated frequently, but it's information are still meant to be usable and feasible. As the blogger is a lazy person, and also there are no audience at the moment, so maintainence is kept to the lowest priority. If you want this blog to come alive, PLEASE TELL ME and POST COMMENTS to let me know that you care.