<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jan 31, 2016 at 11:25 AM, anatoly techtonik <span dir="ltr"><<a href="mailto:techtonik@gmail.com" target="_blank">techtonik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
Is is possible to ship development files for MinGW32<br>
like static libs and headers? I am particularly interested<br>
in libvorbisfile required to build Wesnoth on Windows.<br>
SDL2 provides a convenient distribution that I unpack<br>
and it works:<br>
<a href="https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-mingw.tar.gz" rel="noreferrer" target="_blank">https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-mingw.tar.gz</a><br>
<a href="https://www.libsdl.org/projects/SDL_mixer/" rel="noreferrer" target="_blank">https://www.libsdl.org/projects/SDL_mixer/</a><br>
<br>
But I can't find where I can download libvorbisfile.a for<br>
i686-w64-mingw32 and can't compile it, because<br>
building from source requires installing Linux tools like<br>
bash, m4 and autoconf on Windows.<br><br></blockquote><div><br></div><div>The github versions of <a href="https://github.com/xiph/vorbis">vorbis</a> and <a href="https://github.com/xiph/ogg">ogg</a> can be built with <a href="https://cmake.org/download/">CMake</a>.</div><div><br></div><div>Let's say you downloaded ogg (<a href="https://github.com/xiph/ogg/archive/master.zip">ogg-master.zip</a>) and vorbis (<a href="https://github.com/xiph/vorbis/archive/master.zip">vorbis-master.zip</a>) from github and </div><div>unpacked them in c:\Projects\ogg-master and c:\Projects\vorbis-master</div><div><br></div><div>The following commands should help you build libvorbisfile.a.</div><div><br></div><div><font face="monospace, monospace">$ set PATH=c:\MinGW64\bin;%PATH%<br></font></div><div><font face="monospace, monospace">$ cd c:\Projects</font></div><div><font face="monospace, monospace">$ mkdir ogg-master-build</font></div><div><font face="monospace, monospace">$ cd ogg-master-build</font></div><div><font face="monospace, monospace">$ cmake -G "MinGW Makefiles" ..\ogg-master -DCMAKE_BUILD_TYPE=Release</font></div><div><font face="monospace, monospace">$ mingw32-make</font></div><div><font face="monospace, monospace">$ cd ..</font></div><div><font face="monospace, monospace">$ mkdir vorbis-master-build</font></div><div><font face="monospace, monospace">$ cd vorbis-master-build</font></div><div><font face="monospace, monospace">$ cmake -G "MinGW Makefiles" ..\vorbis-master -DCMAKE_BUILD_TYPE=Release -DOGG_INCLUDE_DIRS=../ogg</font><span style="font-family:monospace,monospace">-master/include -DOGG_LIBRARIES=../ogg-master-build</span></div><div><font face="monospace, monospace">$ mingw32-make</font></div><div><br></div><div>Cheers,</div><div>Cristian.</div></div></div></div>