The "MSYS Makefiles" generator is by far the most common generator used in
the MINGW-packages repository, so I just use that and didn't experiment
with many other generators.

Yes, you must be aware that an MSYS2 installation supports three different
toolchains with different behaviors, and have a clear idea of which one you
want to use.  I spend a lot of time explaining this on StackOverflow
because people come in with questions about MSYS2 but they usually forget
to tell us which MSYS2 shell they launched, and what the outputs of `which
gcc` and `echo $MSYSTEM` are.

--David

On Mon, Jun 22, 2020 at 12:41 PM Filippo Rusconi <listes.rusc...@laposte.net>
wrote:

> Greetings, David,
>
> thank you so much for your answer (see below).
>
> On Mon, Jun 22, 2020 at 09:50:56AM -0700, David Grayson wrote:
> >This is the pattern I typically use for building a MinGW program with
> CMake
> >and installing it in the correct directory:
> >
> >mkdir build
> >cd build
> >MSYS2_ARG_CONV_EXCL=- cmake .. -G"MSYS Makefiles"
> >-DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX
> >make install DESTDIR=/
>
> I use -G "Unix Makefiles". Would that change something to your logic ?
> What is
> the benefit of using -G"MSYS Makefiles" ? It's interesting. My programs
> make
> heavy use of Qt5. Would the binaries created using -G"MSYS Makefiles" be
> compatible with the Qt dll files in /mingw64/bin ?
>
> This is something I really would like to understand: what is the difference
> between using the development environment in Msys2 and the development
> environment in MinGW64. I have read tons of documents that used to say "be
> careful to have this or that path in your env PATH variable otherwise
> you'd use
> this or that compiler and the images generated would be incompatible". I
> never
> really took the time to experiment... Does that kind of writing still apply
> today ?
>
> Again, thank you for your message,
>
> Sincerely,
> Filippo Rusconi
>
> --
>
> ⢀⣴⠾⠻⢶⣦⠀  Filippo Rusconi, PhD
> ⣾⠁⢠⠒⠀⣿⡁   Research scientist at CNRS
> ⢿⡄⠘⠷⠚⠋⠀   Debian Developer
> ⠈⠳⣄⠀⠀⠀⠀  http://msxpertsuite.org
>            http://www.debian.org
>
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to