Re: Shipping development files for mingw32
Cristian Adam <[email protected]> Sun, 31 Jan 2016 12:39:38 +0100
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.general |
|---|---|
| Message-ID | <CA+u+m-Ly1OX80xBHoOJctPnXu7eRf3j-CMEugeYuaQ1gZ9jWfQ@mail.gmail.com> |
--===============1806284646== Content-Type: multipart/alternative; boundary=047d7b873dda33c34b052a9fb94c --047d7b873dda33c34b052a9fb94c Content-Type: text/plain; charset=UTF-8 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 <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. --047d7b873dda33c34b052a9fb94c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On S= un, Jan 31, 2016 at 11:25 AM, anatoly techtonik <span dir=3D"ltr"><<a hr= ef=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>= ></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bor= der-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=3D"https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-dev= el-2.0.1-mingw.tar.gz" rel=3D"noreferrer" target=3D"_blank">https://www.lib= sdl.org/projects/SDL_mixer/release/SDL2_mixer-devel-2.0.1-mingw.tar.gz</a><= br> <a href=3D"https://www.libsdl.org/projects/SDL_mixer/" rel=3D"noreferrer" t= arget=3D"_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>T= he github versions of <a href=3D"https://github.com/xiph/vorbis">vorbis</a>= and <a href=3D"https://github.com/xiph/ogg">ogg</a> can be built with <a h= ref=3D"https://cmake.org/download/">CMake</a>.</div><div><br></div><div>Let= 's say you downloaded ogg (<a href=3D"https://github.com/xiph/ogg/archi= ve/master.zip">ogg-master.zip</a>) and vorbis (<a href=3D"https://github.co= m/xiph/vorbis/archive/master.zip">vorbis-master.zip</a>) from github =C2=A0= and=C2=A0</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=3D"monospace= , monospace">$ set PATH=3Dc:\MinGW64\bin;%PATH%<br></font></div><div><font = face=3D"monospace, monospace">$ cd c:\Projects</font></div><div><font face= =3D"monospace, monospace">$ mkdir ogg-master-build</font></div><div><font f= ace=3D"monospace, monospace">$ cd ogg-master-build</font></div><div><font f= ace=3D"monospace, monospace">$=C2=A0cmake -G "MinGW Makefiles" ..= \ogg-master -DCMAKE_BUILD_TYPE=3DRelease</font></div><div><font face=3D"mon= ospace, monospace">$ mingw32-make</font></div><div><font face=3D"monospace,= monospace">$ cd ..</font></div><div><font face=3D"monospace, monospace">$ = mkdir vorbis-master-build</font></div><div><font face=3D"monospace, monospa= ce">$ cd vorbis-master-build</font></div><div><font face=3D"monospace, mono= space">$ cmake -G "MinGW Makefiles" ..\vorbis-master -DCMAKE_BUIL= D_TYPE=3DRelease -DOGG_INCLUDE_DIRS=3D../ogg</font><span style=3D"font-fami= ly:monospace,monospace">-master/include -DOGG_LIBRARIES=3D../ogg-master-bui= ld</span></div><div><font face=3D"monospace, monospace">$ mingw32-make</fon= t></div><div><br></div><div>Cheers,</div><div>Cristian.</div></div></div></= div> --047d7b873dda33c34b052a9fb94c-- --===============1806284646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Vorbis mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis --===============1806284646==--