Re: Fwd: Plans for GTK+ Bundles for win32 and win64?

On 09/08/2011 09:34 AM, Anders Broman wrote:
> Hi,
> Has the provision of binary bundles for Windows 32 bit and 64 bit been
> discontinued?

Others have already replied about the situation with the official binary
bundle, but here's an alternative.

There's also the option to go with cross-compiling from Linux. There are
at least two separate efforts which use the gcc cross-compiler to
produce ready-made binary Windows libraries, including the full GTK+

In early 2009, Richard W.M. Jones started the Fedora MinGW project [1]
which uses the [2] runtime / libraries / headers. The idea was
that there was too much fragmentation and duplication of work because at
that time pretty much everybody had to build their own set of libraries;
the Fedora MinGW project would make it easier by distributing binary
library packages that everybody could reuse and contribute back to.

On a Fedora system, it can't be simpler to use:
yum install mingw32-gcc mingw32-gtk3
unpack your app and cd in the dir
make -j4

About half a year later, the openSUSE guys led by Fridrich Strba forked
the Fedora MinGW project and started with a separate effort using the
OBS [3]. The openSUSE MinGW project however didn't go with the
runtime, but instead started using the mingw-w64 [4] runtime. The
main advantage over the was that with mingw-w64, it's possible
to produce both 32 bit and 64 bit binaries, whereas the one is
limited to 32 bit.

Both Fedora and openSUSE MinGW cross-compilers are very easy to use from
the respective Linux flavours, but there were parties who wanted to
reuse the produced binary library packages on other systems. Maarten
Bosmans came up with a script to Python script [5] to download the RPMS
and extract the libraries, without the need to use neither Fedora nor
openSUSE. Also works on Windows.
$ ./ -u mingw32-gtk3 [Fedora]
$ ./ --project=windows:mingw:win32 mingw32-gtk3 [openSUSE]

With that script, one can extract the full GTK+ bundle. If compatibility
with the toolchain and/or the official mingw binaries
is desired, it's probably better to go with the Fedora MinGW binaries;
for producing 64 bit binaries and/or compatibility with the mingw-w64
toolchain the openSUSE project might be better choice.


Hope this helps,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]