<div dir="ltr">Hi,<div><br></div><div>You are most probably using MSys2, which means that you are using CMake from MSys2, </div><div>and they patch CMake for their platform. This also means that CMake upstream doesn't support it.</div><div><div><br></div><div><a href="https://paste.ubuntu.com/p/ypnMXfdK6t/">Here</a> are the differences between upstream CMake 3.14.3 and MSys2 CMake 3.14.3. No idea why</div><div>the MSys2 people didn't try to upstream this into CMake.</div><div><br></div></div><div>In this case you should get support from MSys2 people, or switch to <a href="https://cmake.org/download/">upstream CMake</a> and <a href="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/">standalone MinGW-w64</a>.</div><div><br></div><div>Alternatively you can try using the Ninja generator.</div><div><br></div><div>The problem with standalone MinGW-w64 is that you will not have the number of libraries that MSys2 offers.</div><div>You can use a CMake package manager like Conan, or Hunter to obtain those libraries.</div><div><br></div><div>I know this because when I tried to compile Qt6::Base with MSys2 I was not able to compile, due to </div><div>various Msys2 problems. With upstream CMake, standalone MinGW-w64 and Hunter 3rd party libraries</div><div>everything worked just fine. At <a href="https://bugreports.qt.io/browse/QTBUG-75578">https://bugreports.qt.io/browse/QTBUG-75578</a> I described how I compiled Qt6::Base.</div><div><br></div><div>Cheers,</div><div>Cristian.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 23, 2019 at 3:49 PM Christopher Webster <<a href="mailto:cjw@ucar.edu">cjw@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<pre>Greetings,</pre>
<pre> I am trying to figure out which generator to use on MinGW64 on Windows10, the 2-3 I have tried fail.</pre>
<pre class="gmail-m_-871106138811400420moz-quote-pre">cmake version is 3.14.5
If I try "Unix Makefiles" I get:
$ cmake -S coin -B coin_build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=C:\Tools\Packages\Coin3D
-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is GNU 9.1.0
System is unknown to cmake, create:
Platform/MINGW64_NT-10.0-17763 to use this system, please send your
config file to <a class="gmail-m_-871106138811400420moz-txt-link-abbreviated" href="mailto:cmake@www.cmake.org" target="_blank">cmake@www.cmake.org</a> so it can be added to cmake
If I try "MinGW Makefiles" I get:
$ cmake -S coin -B coin_build -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:\Tools\Packages\Coin3D
CMake Error: Could not create named generator MinGW Makefiles
Generators
* Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
CodeLite - Ninja = Generates CodeLite project files.
CodeLite - Unix Makefiles = Generates CodeLite project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
Kate - Ninja = Generates Kate project files.
Kate - Unix Makefiles = Generates Kate project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files
Thanks for any guidance.
Chris
</pre>
</div>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>