[CMake] What generator(s) should be used for MinGW-w64?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Oct 30 17:07:20 EDT 2014


PLplot developers and users have had a lot of success with MinGW alone
(using the "MinGW Makefiles" generator) or the combination of MinGW
and MSYS (using the "MSYS Makefiles" generator).  However, there is
another gcc compiler out there for Windows called MinGW-w64 that one
of our users would like to use, but I don't know exactly what to
advise him, and so I hope somebody here has had some practical CMake
experience with the MinGW-w64 compiler and could help with such advice.

Here is what I know so far:

MinGW-w64 is a completely separate project than MinGW with
different developers, install procedure, etc.  I have read distributed
binary versions of MSYS are all built with MSYS so are not
ABI-compatible with MinGW-w64, and I will proceed on that assumption.
Furthermore, there is an MSYS2 project (a completely independent
project from MSYS, see <http://sourceforge.net/p/msys2/wiki/Home/>)
which _is_ API-compatible with MinGW-w64 since it is built with that
compiler.

The combination of MinGW-w64 and MSYS2 seems fairly well documented
(see the above wiki reference).  It appears for example, this
combination is a "lite" version of Cygwin.  So I assume
that if MSYS2 is on the PATH, then the "Unix Makefiles" generator
is the correct one to use for this case (since that is the
recommended generator for Cygwin), but I would like confirmation
of that if someone here has experience with the combination
of MinGW-w64 and MSYS2.

Another possible case is when neither MSYS nor MSYS2 are on the PATH.
Is the "MinGW Makefiles" generator the correct one to use with the
MinGW-w64 compiler for this case?  My guess is that might work if the
MinGW-w64 binary package includes some form of make command (similar
to the MinGW mingw32-make.exe command), but I am having trouble
finding a binary package for MinGW-w64 so I have no idea whether
binary packages exist for MinGW-w64, and if so whether they include
some form of make command.  So if somebody here has some experience
with the MinGW-w64 without MSYS2, I would appreciate your comments.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list