![mingw vs cygwin mingw vs cygwin](https://sourceforge.net/p/orwelldevcpp/tickets/156/attachment/err1.jpg)
However, keep in mind that I'm not a legal expert. ML command line tools aren't really using the Cygwin API (Application Programming Interface) and MinGW has been using the Win32 API for years so there shouldn't be any legal issues using a setup like this as long as everything is kept open source.
![mingw vs cygwin mingw vs cygwin](http://www.wingdb.com/docs/images/wg_vsprojects2.png)
MINGW VS CYGWIN LICENSE
Unless you purchase a special commercial license from Red Hat, then your Cygwin application must be Open Source. If this is an issue because you intend to distribute your Cygwin application, then you had better read and understand, which explains the licensing options. In particular, it is not possible to statically link with a Cygwin library to obtain an independent, self-contained executable. If your program uses the Cygwin API, then your executable cannot run without cygwin1.dll.
MINGW VS CYGWIN WINDOWS
It may seem that creating Windows programs that do not rely on the cygwin1.dll was either not possible or not permitted because of this F.A.Q. That seems to be pretty much standard operating procedure in open source development. There are other command line tools, some of which I don't know what they do and can't get a working build for them. I have tested this with cr2hdr, mlv_dump and raw2dng. Let's make it easy, just copy/paste the following into your Cygwin Terminal:īy adding the ".exe" file extension the Magic Lantern Makefile(s) will use the MinGW gcc compiler and create a native Windows binary. To figure out which ARM compiler to get refer to the ML code, specifically: - ARM_PATH=~/gcc-arm-none-eabi-4_8-2013q4 notice that little squiggly mark after the equal sign? That means that the path starts in your home directory. Canon cameras are obviously not Windows computers so we will need one more compiler to build something that will run on the ARM Architecture used in the camera. Once the installer is finished, let it make shortcuts to your startup menu.
MINGW VS CYGWIN INSTALL
There may be some other packages that you might want to install but this should be enough to build the unified branch which is what gets pushed out to the nightly builds.
![mingw vs cygwin mingw vs cygwin](https://ariya.io/images/2020/01/clang-msys2.png)
Just accept the default options for the installer. Get the Cygwin Installer, setup-x86.exe (just click on the link to save a few steps), these are the same installers that are on the official Cygwin website. The best advice is to create a user name without spaces. I tried coming up with a workaround but nothing worked 100% of the time. If you've got a space in your Windows user name it doesn't work. However, ML Supporter, Hero Member and Cygwin advocate Marsu42 pointed out that it is possible to use the MinGW-w64 gcc compilers with Cygwin to in effect cross compile Windows native binaries. It used to be that you couldn't create Windows native cr2dng, mlv_dump or other ML command line tools.
MINGW VS CYGWIN ZIP FILE
Note that you won't be able to use all of the features of the ML build scripts as you can with Linux or to an extent on a Macintosh, though you can still compile an ML nightly zip file and all of command line tools. Cygwin is probably the quickest and easiest way to set up a ML development environment on Windows.