I am trying to cross-compile libFLAC for Windows from Linux. Here are the steps I have performed:
I downloaded the latest release (1.2.1) and extracted the tarball.
I applied a small patch:
patch -p0 < my_patch.diff
I ran the following command in the extracted directory:
./configure --host=i686-w64-mingw32
--prefix=/usr/i686-w64-mingw32
--enable-shared
I then ran make
and waited for the library to build.
Although there were no errors during the build process, a shared library is not built - all I end up with is a static library (despite explicitly requesting one in the ./configure
step above). If I run make install
, I end up with the following files / directories:
The output of the two commands is available here:
configure
: http://paste.ubuntu.com/1161368/make
: http://paste.ubuntu.com/1161427/Edit: if I use the option --disable-static
, I get this output: http://paste.ubuntu.com/1161441/
I finally decided to switch from the 1.2.1 release to a checkout of git://git.xiph.org/flac.git.
...and I am pleased to report that the library now compiles without issue and I end up with a libFLAC-8.dll
file.