Re: Shipping development files for mingw32
anatoly techtonik <[email protected]> Sun, 31 Jan 2016 15:25:03 +0300
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.general |
|---|---|
| Message-ID | <CAPkN8xKr8cLhqg1ZEoXUXs=uL0WYwy9V6qgEaLJgSMCA8KsKoA@mail.gmail.com> |
On Sun, Jan 31, 2016 at 2:39 PM, Cristian Adam <[email protected]> wrote: > On Sun, Jan 31, 2016 at 11:25 AM, anatoly techtonik <[email protected]> > 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-make Wesnoth 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.