Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: vertigopix on August 06, 2014, 07:49:23 PM

Title: Best Linux distro for compiling ML ?
Post by: vertigopix on August 06, 2014, 07:49:23 PM
I have a small machine that I want to reserve for compiling ML.
So, what do you think, what is the best distro for compiling / hacking ML "easily" ?
Title: Re: Best Linux distro for compiling ML ?
Post by: josepvm on August 06, 2014, 10:31:09 PM
I use Ubuntu Gnome 14.04 for my everyday work, and I can build ML or find stubs with "disassemble.pl" in the same install, no problem.

If your machine is a little old, or it doesn't have much memory, you can use Xubuntu, it works very well with low RAM machines and is very easy to use. I have Xubuntu 14.04 on my old laptop and it builds ML as well with no problems.

Use prepare.ubuntu.sh (https://bitbucket.org/hudson/magic-lantern/src/8d8ba2d13649f4b5817bedb2f43a9862effc934d/contrib/toolchain/prepare.ubuntu.sh?at=unified) to install all the required packages. And then install the ARM toolchain from https://launchpad.net/gcc-arm-embedded (https://launchpad.net/gcc-arm-embedded)

There is also a ppa for the ARM toolchain, for installing it system wide. But then the compiler is installed in /usr, /usr/bin, etc,  and you will need to change more things in "makefile.user" file before bulding ML. It is possible, but it is easier to install the prebuilt tarball file from the link above, in your home directory, this is the way the paths are defined in ML "makefile.user.default"

If you use a 64 bit version of Ubuntu, be aware of this issue:

http://www.magiclantern.fm/forum/index.php?topic=991.msg112954#msg112954 (http://www.magiclantern.fm/forum/index.php?topic=991.msg112954#msg112954)

You need to reinstall libc6-i386, as pointed in that post.

And If you plan to install ARM-console (http://magiclantern.wikia.com/wiki/GPL_Tools/ARM_console) don't use Ubuntu 14.04, it will not work, because ARM-console needs some python packages in older versions than those present in recent Ubuntu editions, and you will get conflicts.

I have succesfully installed ARM-Console in Xubuntu 12.04.4. It is a long term support edition, so it still gets regular updates.
Title: Re: Best Linux distro for compiling ML ?
Post by: chmee on August 07, 2014, 01:42:20 AM
@josepvm
possible to compile and work under VM Virtual Box? got a debian squeeze runnin..
Title: Re: Best Linux distro for compiling ML ?
Post by: vertigopix on August 07, 2014, 07:49:19 AM
Thank you josepvm, great informations !

I'm going on vacations, i will check this when i'm back.
Title: Re: Best Linux distro for compiling ML ?
Post by: josepvm on August 07, 2014, 09:35:45 AM
Quote from: chmee on August 07, 2014, 01:42:20 AM
@josepvm
possible to compile and work under VM Virtual Box? got a debian squeeze runnin..

Yes, It's possible and works very well.

The Xubuntu 12.04.4 install I use to run Arm-console is a Virtualbox virtual machine.

The only issue I've observed in some Ubuntu installations with Virtualbox (it was during Ubuntu Trusty beta phase) is a bad screen detection that gives you a very low max. screen resolution, 640x480. If you see this problem, install Virtualbox "gest-on-additions" and then you will be able to setup any screen resolution you want.

Title: Re: Best Linux distro for compiling ML ?
Post by: vertigopix on August 08, 2014, 11:59:24 AM
@josepvm,
Working perfectly !  :)
Thank you.
Title: Re: Best Linux distro for compiling ML ?
Post by: IBIRRU on February 07, 2015, 02:09:28 PM
I'm using a VirtualBox  Linux Mint 17.1 32 bit Mate desktop (based on Ubuntu 14.04) machine

After running the prepare.ubuntu.sh script it works very fine for compiling full-silent-pics branch for my old 500D :D