using MinGW to create OSX binaries

Erik van Pienbroek erik at vanpienbroek.nl
Fri Jun 1 21:10:34 UTC 2012


Andres Colubri schreef op vr 01-06-2012 om 07:47 [-0400]:
> Is MinGW usable at this point to generate binaries with OSX as the 
> target platform?

Hi,

The term 'MinGW' stands for Minimalist GNU for Windows, so it consists
of various GNU tools (like gcc) which are able to build binaries for the
win32 and win64 targets.

What you're actually looking for is a cross-compiler which runs on
Fedora Linux and which is able to generate binaries for the Mac OS X
target.

Some years ago I managed to make it possible to cross-compile binaries
for the Mac OS X target on a Fedora Linux host and packaged everything
in RPMs. For the initial announcement of this Mac OS X toolchain you can
check the archives of this mailing list:
http://lists.fedoraproject.org/pipermail/mingw/2009-June/001686.html

In this mailing list posting there's a reference to a yum repository
containing the darwinx RPM packages. This yum repository isn't updated
any more as it has been replaced by a different one.

As you may have heard we started with a new packaging infrastructure for
cross-compiled packages about a year ago. The initial goal of this new
packaging infrastructure was to add win64 support. The secondary goal
was to be able to build binary packages for the win32, win64 and darwinx
targets from a single source package. The result of this new packaging
infrastructure was initially announced at
http://lists.fedoraproject.org/pipermail/mingw/2011-January/003285.html

The win32+win64 part of this new packaging infrastructure has recently
been merged in the official Fedora repositories and is now part of
Fedora 17:
https://fedoraproject.org/wiki/Features/Mingw-w64_cross_compiler

Unfortunately we can't merge the darwinx pieces to Fedora because of
legal issues (the Mac OS X SDK isn't fully open source and therefore not
allowed in Fedora). That's why the darwinx pieces are currently being
maintained in a separate yum repository.

More information about this yum repository can be found at
https://fedoraproject.org/wiki/MinGW/CrossCompilerFramework
You can find instructions how to add this yum repository on that wiki
page. Once you've got the yum repository configured, you can perform a
'yum search darwinx' and install all the packages which you're
interested in.

If you happen to stumble across any issues, feel free to let us know
(IRC is preferred, but this mailing list is fine too)

Kind regards,

Erik van Pienbroek




More information about the mingw mailing list