It seems like lots of people are using wine to run the command line tools provided with Magic Lantern. Here is how to compile and create symbolic links to the binary to make the workflow a little bit simpler
.I'm assuming you are fairly comfortable using a command line interface and navigating the filesystem with commands like cd
. If you aren't then this is not the resource for you, you have plenty of other reading to do before you will be ready for this. Edit: for emphasis.
You're going to need a few tools for this: MacPorts, hg, dcraw, and a pre-compiled arm toolchain.
First step is download and install MacPorts
, a command line-based package system similar to APT for linux. After installation is complete you are going to want to install a few packages.
In terminal type 'sudo port install mercurial' to download install hg', which we will use to download the source. You'll be prompted for your administrator acct. password. Follow any warnings or suggestions on updating the package list.
Next we're going to download dcraw, which is needed by cr2hdr and raw2dng for conversion purposes. Again in terminal type 'sudo port install dcraw'.
We're done with MacPorts for now and can use hg to download the source tree. Navigate in Terminal to whereever you wish to download the ML source files and type 'hg clone -r unified https://bitbucket.org/hudson/magic-lantern
'. This will create a folder ./magic-lantern/ which contains all the source files.
Now that we have the source we need to get a pre-compiled toolchain
to compile the code. Save and extract.
Now we have to tell the ML build files where they can fine the compiler. open ./magic-lantern/makefile.user.default in a text editor and and change the following line to indicate where you extracted the toolchain.
For me its
Be sure to not end your path with '/'
Save this new file as makefile.user (dropping the .default extension). Now we are ready to build.
First, you must compile the autoexec.bin and associated .sym file for your camera.
Now, in terminal, go to your source ./magic-lantern/modules/raw_rec
Type make. You will get some warnings about not having compiled the source for any model but these instructions are purely for getting the utilities to compile. You'll end up with our first utility, raw2dng, amongst other things like the module files.
Now we are going to make a link to raw2dng so that it can be run as a command in terminal no matter what directory you are in.
Type 'sudo ln -s raw2dng /usr/bin/raw2dng' This creates a symbolic link to the original file.
Now we are going to do the same for cr2hdr. Enter ./magic-lantern/modules/dual_iso
Type 'make' then 'sudo ln -s cr2hdr /usr/bin/cr2hdr'.
Voila now these 2 utilities are compiled and ready to be run from any directory through the terminal. For example with dual ISO images, enter the folder with the images and type 'cr2hdr IMG_0000.cr2'
To be totally honest there are probably some bumps you are going to run into and files you may have to edit to get everything compiling. I'll do my best to help but I have very limited programming experience and mostly have gotten through this with the help of Coutts 'developing on Mac' wiki article and a lot of trial and error.