MINGW64: Build a static SoX (.exe) for Windows, DLL-independent with MP3 de-/encoding support (libmad and Lame encoder)
Here are my personal notes on compiling SoX with MINGW64. Maybe, my situation isn't representative for everyone. Or maybe, I could have achieved my goal easier. But this is the way I succeeded.
I need to build SoX as a static .exe file with MP3 de- and encoding support, to be able to normalize an existing MP3 file and save it as MP3.
I used Windows 11 Pro and MINGW64. I did another successful test with Windows 8.1.
My main goal is to be able to normalize and save back MP3 files. So I need SoX for normalization and libmad / Lame for MP3 de-/encoding. At best, I would like to port my target .exe file to other systems without the need of any depending DLL or other file.