<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 7:39 AM, Kevan Hashemi <span dir="ltr"><<a href="mailto:hashemi@brandeis.edu" target="_blank">hashemi@brandeis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Alan,<br>
<br>
Thank you for your encouragement to use the "MinGW Makefiles" generator on Windows, and for pointing out the mingw32-make alternative to just "make" in MSYS.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So if you are further interested in the "MinGW Makefiles" generator,<br>
you should remove all sh.exe versions from your PATH (including sh.exe<br>
provided by raw Windows), get into a CMD environment, execute cmake<br>
with the "MinGW Makefiles", and then build your software with<br>
<br>
mingw32-make.exe<br>
</blockquote>
<br></span>
I installed the latest version of MinGW with MSYS on my 32-bit Windows 7 virtual machine (which is running in VMBox on a MacOS 10.12.6 host computer). I open a CMD terminal (DOS prompt). I do not move any sh.exe files. I run cmake with -G "MinGW Makefiles" for Executable_A. The configuration and generation complete with no errors and only one warning. In the CMD terminal, I use mingw32-make.exe to build Executable_A. The executable runs perfectly when linked dynamically to libraries I previously built with "MSYS Makefiles".<br>
<br>
I repeat the above process, but when it comes to the build itself, I switch from the CMD terminal to the MSYS terminal, and use mingw32-make.exe instead of just "make" (as noted previously, "make" takes me to an alternate shell with a Microsoft copyright). The build completes and Executable_A runs just fine.<br>
<br>
I rebuild my libraries with the "MinGW Makefiles" process, staying in the CMD terminal for both stages. The CMake completes with a few minor warnings. The CMD build proceeds at about the same speed as the MSYS build (you found the CMD build to be faster). When the build completes, I run Executable_A linking dynamically to the new set of "MinGW Makefiles" libraries. The executable runs perfectly.<br>
<br>
Conclusion: Easiest way to get MinGW Makefile generation is to do it in the CMD terminal. After that, you make with mingw32-make in eithger CMD or MSYS. Libraries compiled with either process are compatible with one another at any stage of compiling or linking.<span class=""><br>
<br></span></blockquote><div><br></div><div>I just want to throw out there, I use MinGW (with MingW Makefiles) wihtout MSYS just fine for most things.... including OpenCV which I tested first day and had no issues... but by then others had already commented. All that requires is mingw(64).bin and cmake/bin in your path....</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Yours, Kevan<br>
<br>
-- <br>
Kevan Hashemi, Electrical Engineer<br>
Physics Department, Brandeis University<br>
<a href="http://alignment.hep.brandeis.edu/" rel="noreferrer" target="_blank">http://alignment.hep.brandeis.<wbr>edu/</a><br></span><span class="">
-- <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/CMak<wbr>e_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/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.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/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</span><a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/list<wbr>info/cmake</a><br>
</blockquote></div><br></div></div>