[Vorbis] Shipping development files for mingw32

Cristian Adam cristian.adam at gmail.com
Sun Jan 31 03:39:38 PST 2016


On Sun, Jan 31, 2016 at 11:25 AM, anatoly techtonik <techtonik at gmail.com>
wrote:

> Hi,
>
> Is is possible to ship development files for MinGW32
> like static libs and headers? I am particularly interested
> in libvorbisfile required to build Wesnoth on Windows.
> SDL2 provides a convenient distribution that I unpack
> and it works:
>
> https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-mingw.tar.gz
> https://www.libsdl.org/projects/SDL_mixer/
>
> But I can't find where I can download libvorbisfile.a for
> i686-w64-mingw32 and can't compile it, because
> building from source requires installing Linux tools like
> bash, m4 and autoconf on Windows.
>
>
The github versions of vorbis <https://github.com/xiph/vorbis> and ogg
<https://github.com/xiph/ogg> can be built with CMake
<https://cmake.org/download/>.

Let's say you downloaded ogg (ogg-master.zip
<https://github.com/xiph/ogg/archive/master.zip>) and vorbis (
vorbis-master.zip <https://github.com/xiph/vorbis/archive/master.zip>) from
github  and
unpacked them in c:\Projects\ogg-master and c:\Projects\vorbis-master

The following commands should help you build libvorbisfile.a.

$ set PATH=c:\MinGW64\bin;%PATH%
$ cd c:\Projects
$ mkdir ogg-master-build
$ cd ogg-master-build
$ cmake -G "MinGW Makefiles" ..\ogg-master -DCMAKE_BUILD_TYPE=Release
$ mingw32-make
$ cd ..
$ mkdir vorbis-master-build
$ cd vorbis-master-build
$ cmake -G "MinGW Makefiles" ..\vorbis-master -DCMAKE_BUILD_TYPE=Release
-DOGG_INCLUDE_DIRS=../ogg-master/include -DOGG_LIBRARIES=../ogg-master-build
$ mingw32-make

Cheers,
Cristian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis/attachments/20160131/5f5393b7/attachment.htm 


More information about the Vorbis mailing list