Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: Audionut on December 11, 2013, 06:07:14 PM

Title: Getting a development machine up and running and developing.
Post by: Audionut on December 11, 2013, 06:07:14 PM
A list of threads that will help you in merging your own code to ML.

Compiling Magic Lantern in the Cloud (http://www.magiclantern.fm/forum/index.php?topic=14725.0)

Compiling Magic Lantern with Cygwin/MinGW-64 (http://www.magiclantern.fm/forum/index.php?topic=15894.0)

Compiling ML on Windows with msys/MinGW - The Sequel (http://www.magiclantern.fm/forum/index.php?topic=15845.0)

Setting up a Magic Lantern development environment on a Macintosh (http://www.magiclantern.fm/forum/index.php?topic=16012.0)

Getting started with development (http://www.magiclantern.fm/forum/index.php?topic=991.0)
Getting the code and a development machine up and running.

Easy Coding Tasks (http://www.magiclantern.fm/forum/index.php?topic=9625.0).

Safe Hacking Toolbox (http://www.magiclantern.fm/forum/index.php?topic=3624.0)

Getting started as developer (http://www.magiclantern.fm/forum/index.php?topic=2899.0)
General discussion in getting started.

Mercurial Tips (http://www.magiclantern.fm/forum/index.php?topic=9524.0)

Quick Guide and Solutions for VirtualBox (http://www.magiclantern.fm/forum/index.php?topic=7579.0)

Magic Lantern TODO list (http://www.magiclantern.fm/forum/index.php?topic=7541.0)

Submitting a pull request all via web browser (http://www.magiclantern.fm/forum/index.php?topic=7940.0)

Magic Lantern development on Windows - A detailed step-by-step-guide (http://www.magiclantern.fm/forum/index.php?topic=6783.0)

Beginners Guide to Compiling Magic Lantern (http://www.magiclantern.fm/forum/index.php?topic=6425.0)

A long list of camera registers (http://www.magiclantern.fm/forum/index.php?topic=10008.0)

Magic Lantern Development on Mac (http://magiclantern.wikia.com/wiki/Magic_Lantern_Development_on_Mac)

Need help compiling on mac (http://www.magiclantern.fm/forum/index.php?topic=7936.0)

Using TortoiseHG (GUI) - Working with branches - Creating Pull Request (http://www.magiclantern.fm/forum/index.php?topic=10774.0)

Tutorial: finding stubs (http://www.magiclantern.fm/forum/index.php?topic=12177.0)
Title: Re: Getting a development machine up and running and developing.
Post by: Marsu42 on April 04, 2014, 11:24:33 PM
I recently set up a minimal (70mb packed, ~500mb unpacked) cygwin-x86 for compiling ml and its tools from anywhere w/o fuzz. I see no reason not to share it, but let me know if there's any problem with redistributing this. It's just a copy of cygwin + arm-gcc + exiftool + dcraw with non-en locales and non-eos arm targets removed for convenience. I hope it works for you, I really didn't test it that much in different environments...

https://bitbucket.org/Marsu42/ml-pull/downloads/cw-armgcc-ml.7z

1. unpack (or see below) archive to c:\
2. in c:\cygwin click "Cygwin Terminal" link
3. uncomment the rst2latex.py line in /ml/Makefile.user & adjust other paths there if needed
4. edit /ml/mlmake.sh to match your camera's type and platform directory
5. run /ml/mlget.sh ... your compiled ml will end up in /ml/ml-dist, copy that to card (& run eoscard)
6. from now on only run /ml/mlupdate.sh

To place the cygwin directory somewhere else change the shortcuts/.sh/.bat in the root directory or just create a junction c:\cygwin to the real directory. To update cygwin edit/import the .reg to match your path, run /cygports.sh and select "exp" in the top right for the newest version of the packages. To update gcc-arm get the newest one from launchpad and replace it in /opt.

Let me know if it fails catastrophically :-p so I can make some changes if required.
Title: Re: Getting a development machine up and running and developing.
Post by: bischofftep on April 09, 2014, 11:22:05 PM
Ran into this and others may as well:

If your "make docs" or "make zip" build fails with an error after the words "This is pdfTeX" it may be that your LaTeX install did not include several fonts used by ML's document system.

To fix this on Linux systems, try:
apt-get install texlive-fonts-extra

That should install the missing fonts.

The next error I hit was a missing "pylab" module. This comes from:
apt-get install python-matplotlib
Title: Re: Getting a development machine up and running and developing.
Post by: dfort on September 25, 2015, 06:53:36 AM
Cool--a few of the tutorials that I wrote up made it on the list.

Thanks Audionut!

Looks like Compiling Magic Lantern with Cygwin/MinGW-64 (http://www.magiclantern.fm/forum/index.php?topic=15894.0) is the one that is the most solid and some yet to be merged Windows specific code changes aren't required. The quick start guide allows short attention span users to get going in just a few minutes. There is even a shell script in the discussion that allows users to create their own nightlies almost automatically--though I'm not sure why anyone would want to do that other than because they can
Title: Re: Getting a development machine up and running and developing.
Post by: Audionut on October 17, 2015, 07:10:52 AM
Thanks for making them.  I've just added your mac one also. 

Feel free to hit me with a stick if I miss any.
Title: Re: Getting a development machine up and running and developing.
Post by: FelixJongleur42 on December 29, 2016, 01:58:45 AM
For openSUSE "make docq" was also failing. The missing packages where:
texlive-mathabx
texlive-mnsymbol
texlive-newfile

For detailed error analysis when pdfTeX is failing, check doc/*.log