Author Topic: Compiling Magic Lantern with Cygwin/MinGW-64  (Read 25220 times)

dfort

  • Hero Member
  • *****
  • Posts: 1969
Re: Compiling Magic Lantern with Cygwin/MinGW-64
« Reply #75 on: July 30, 2017, 02:01:33 AM »
Just ran into an issue where if the user name has a space in it the cmd script won't work. The fix was to quote the %UserProfile%:

Code: [Select]
"%UserProfile%"
Go figure. Fixed it in the tutorial.

[EDIT] Sorry, there are also issues with the build scripts so even though you can setup a Cygwin development environment on a Windows system that has spaces in the user name, ML won't build.

Code: [Select]
make[1]: Leaving directory '/home/new user/magic-lantern/tcc'
...
cp: target 'gcc-libgcc.a' is not a directory
make: *** [../../src/Makefile.src:320: gcc-libgcc.a] Error 1

Best advice for now is not to put spaces in your Windows user name.
EOSM.202 EOSM.203 EOSM2.103 700D.115 5D3.*

chris_overseas

  • Member
  • ***
  • Posts: 205
Re: Compiling Magic Lantern with Cygwin/MinGW-64
« Reply #76 on: October 01, 2017, 09:42:30 AM »
It looks like Visual Studio now has support for building using MinGW-64 and Cygwin:

https://blogs.msdn.microsoft.com/vcblog/2017/07/19/using-mingw-and-cygwin-with-visual-cpp-and-open-folder/
5D Mark IV 1.0.4 | 5D Mark III v1.2.3 | 16-35mm f4.0L | 24-105mm f4L | 70-200mm f2.8L IS II | 100-400mm f4.5-5.6L II | 800mm f5.6L | 100mm f2.8L macro | Samyang 14mm f/2.8 | 2 x Yongnuo YN500EX

dfort

  • Hero Member
  • *****
  • Posts: 1969
Re: Compiling Magic Lantern with Cygwin/MinGW-64
« Reply #77 on: October 02, 2017, 07:21:45 PM »
Looks like Microsoft is opening up to open source. On Windows 10 it is possible to install Ubuntu.
EOSM.202 EOSM.203 EOSM2.103 700D.115 5D3.*