sox_ng wiki - Distro-MXE


Distro MXE

MXE is a cross-compilation environment for Linux that creates Windows executables. It already has a configuration file to build sox.exe' fromsox-14.4.2`.

It’s just too easy make it build sox.exe: Install the other packages it depends on (see https://mxe.cc/#requirements) then

git clone https://github.com/mxe/mxe.git
cd mxe
make sox

and sox.exe will appear, after a long pause, as

usr/i686-w64-mingw32.static/bin/sox.exe

This has been adapted for sox_ng. See issue #65

Things for mxe.cc to do

src/sox.mk lists as build dependencies:

$(PKG)_DEPS         := cc file flac lame libltdl libmad libpng libsndfile \
                                     opencore-amr opus twolame vorbis wavpack

but that wants to be opusfile, not opus.

It also wants libid3tag and in the configuration section

                 --without-id3tag \

wants to be

                 --with-id3tag \

For sox_ng you also want the build dependencies:

                                     fftw speexdsp

and you want to configure

                 --with-ffmpeg \

If ffmpeg is not found at run-time, it just can’t decode the four dozen extra file formats and fails cleanly.

Lastly, if you decide to use sox_ng as a drop-in replacement for sox.sf.net, configure

                 --enable-replace \

Generated by makehtml.sh on Tue Apr 8 01:17:55 CEST 2025