[CMake] cmake on MinGW64; which generator

Christopher Webster cjw at ucar.edu
Sun Jun 23 17:31:01 EDT 2019


On 6/23/19 9:22 AM, Alan W. Irwin wrote:
>
> There are a lot of different platforms that use the MinGW-w64 compiler
> so you should probably
> describe the platform where you are attempting to use that compiler in
> more detail.  For example,
> it sounds like you are simply taking a normal Window platform and
> downloading the
> MinGW-w64 compiler for that platform, but what is the exact URL for
> that download?

As Cristian surmised we use msys2/mingw64; we download from
www.msys2.org (the x86_64 option).  Then install the mingw64 toolchain,
and use mingw64 shells:

pacman -Sy msys2-devel
pacman -Sy mingw-w64-x86_64-toolchain
pacman -Sy base-devel
pacman -Sy mingw-w64-x86_64-check
pacman -Sy mingw-w64-x86_64-qt5
pacman -Sy mingw-w64-x86_64-qwt-qt5
pacman -Sy mingw-w64-x86_64-doxygen
pacman -Sy mingw-w64-x86_64-boost
pacman -Sy mingw-w64-x86_64-git-lfs
pacman -Sy mingw-w64-x86_64-gsl
pacman -Sy mingw-w64-x86_64-netcdf
pacman -Sy mingw-w64-x86_64-curl
pacman -Sy mingw-w64-x86_64-postgresql
pacman -Sy nano scons vim git procps

cmake was installed via:

pacman -Sy cmake


>
> I don't have any recent direct experience myself (I have no access to
> Microsoft Windows and Wine Windows bugs are currently blocking access
> to MSYS2), but PLplot developers I am aquainted with have recently had
> a lot of success with the [MSYS2
> platform](https://github.com/msys2/msys2/wiki) which is another exaple
> of a platform that uses the MinGW-w64 compiler.  For that platform
> they have found that "Unix Makefiles" and "MSYS Makefiles" generally
> give good results.  They haven't yet tried "MinGW Makefiles" but from
> my ancient (MSYS/Wine where MSYS is the predecessor of MSYS2)
> experience for that generator you have to be sure that sh.exe is not
> on your PATH (e.g., by renaming it) before it will work.  (I have
> never quite been sure why that was a requirement, but my guess was the
> "mingw" make version acts differently if it detects sh.exe.)  But
> again from my ancient experience the rest of the Unix tools provided
> by MSYS2 including bash.exe will likely work well with the "MinGW
> Makefiles" generator.
>
> I hope this (ancient direct and recent indirect) practical experience
> with "Unix Makefiles", "MSYS Makefiles", "MinGW Makefiles", and
> MinGW-w64 will be of some help to you.
>
> Alan
> __________________________
> Alan W. Irwin
>
> 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.org); 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