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. -- anatoly t.
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
On Sun, Jan 31, 2016 at 2:39 PM, Cristian Adam <cristian.adam at gmail.com> wrote:> 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 and ogg can be built with CMake. > > Let's say you downloaded ogg (ogg-master.zip) and vorbis (vorbis-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-makeWesnoth uses CMake and SCons. However, I use SCons (and writing bootstrap script for it to get all dependencies automatically). Is there an option to use SCons or go without additional build step and CMake install? -- anatoly t.