[CMake] cmake on MinGW64; which generator

Benjamin Eikel cmake at eikel.org
Mon Jun 24 01:46:10 EDT 2019


Dear Christopher,

Am 23. Juni 2019 23:31:01 MESZ schrieb Christopher Webster <cjw at ucar.edu>:
>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


try to install and use mingw-w64-x86_64-cmake in the mingw64 shell. Additionally, see this answer and the corresponding thread:
https://cmake.org/pipermail/cmake/2018-January/066869.html

Kind regards
Benjamin

>
>
>>
>> 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
>> __________________________
>
>
>-- 
>
>Powered by www.kitware.com
>
>Please keep messages on-topic and check the CMake FAQ at:
>http://www.cmake.org/Wiki/CMake_FAQ
>
>Kitware offers various services to support the CMake community. For
>more information on each offering, please visit:
>
>CMake Support: http://cmake.org/cmake/help/support.html
>CMake Consulting: http://cmake.org/cmake/help/consulting.html
>CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>https://cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list