Journal of my progress adding MAME 2014 to Lakka one way or another

This thread has a new title and purpose: to work through the process of either compiling Lakka with a MAME 2014 core, or compiling a MAME 2014 that can be added to the mainline Lakka.

1 Like

As far as i know Kivutar says anywhere at a similar request/topic (few month ago) that the later Mame-Core are too big to pack-in… He will keep the thing small and thats why he didt want to pack-in the Lakka distro.

Ooh, you are right. My memory had some wishful thinking and I only remembered the parts of that story that I wanted to.

I’m totaly with you! maybe we have to wait until the size of 100-200 MB more or less (for a bigger Mamecore) makes no big difference for average lakka-users… :slight_smile: For now i put the Cores with Samba/Windows PC in the correct Folder of my Lakka-setup. Than create a Playlist and the fun can go on and i had’nd registred any lakka-based issues so far.

I’m going to try to set up a virtual machine for compiling Lakka cores, or maybe compile full Lakka images. I should just learn to do this myself, in other words. :slight_smile:

1 Like

thats sounds like good stuff to me! :slight_smile: an all in one pack was by far the best solution i think. handling or adding cores/databases/infos and things just sucks with lakka in some cases - > An slightly optimised mame-core without the whole crap-games is maybe small enough for Kivutar to be an official pack-in core :slight_smile:

New thread title, new concept.

Thus far I’ve updated a fresh install of Ubuntu 14.06 x64. I’m mostly working from this Lakka doc: http://www.lakka.tv/doc/Compiling-Lakka/

Note: The Lakka doc is a little vague about the right way to get git installed for Ubuntu. You specifically should install git from the terminal with apt-get install git build-essential

From this point on, I notice that the RetroArch Ubuntu compilation docs diverge from the Lakka docs. The RetroArch docs emphasize using the libretro PPAs, but the Lakka guide is working directly with git to pull down sources for compilation.

I enter git clone https://github.com/libretro/Lakka.git Lakka’s source downloads, which takes a while.

Next I enter the automatically-created new Lakka directory with cd Lakka

I use the command DISTRO=Lakka PROJECT=Generic ARCH=x86_64 make image

There are a few questions, which I answer the recommended way. I think this script knows more about the process than I do at this point.

**** Your system lacks the following tools needed to build Lakka ****
gawk makeinfo gperf cvs xsltproc java /usr/include/ncurses.h
**** You seem to use a Ubuntu system ****
would you like to install the needed tools ? (y/n) y
**** The recommended Package-Manager Aptitude is not installed
(y) install Aptitude :: (n) use APT y

After those questions, I was asked to approve approximately 130MB of storage space, which I did approve. Since then the makefile has been doing its magic, and might take a while.

I’m going to try to build Lakka as is from the most recent git commit first in order to make sure I’m doing this right. After that, it seems like it might be as simple as adding to this one line in my local copy of the same options file: https://github.com/libretro/Lakka-LibreELEC/blob/master/distributions/Lakka/options#L254

The Packaging a Core for Lakka docs stress that Lakka’s packages have to be served in a certain format and accessed by the make scripts via HTTP.

On the other hand, there is a package script for MAME 2014 in the github repository. Is there any hope that the HTTP step of the process won’t be necessary for me? To be continued.

1 Like

I think the standard x86_64 libs from the buildbot should work for you, and I think kivutar added a cores directory to the overlay fs that lets you add your own.

For a long time there has been an unexplained phenomenon of the x86_64 buildbot cores would not work with Lakka. Unless that changed in the last few months, which would be GREAT news to me.

I’ll see about dropping in a precompiled core with the latest version of Lakka before I get too much deeper into an unnecessary process. Thank you @hunterk!

Buildbot cores are working with this version of Lakka! This streamlined process of adding a MAME 2014 core to Lakka is the dream I’ve had since my first install of Lakka and RetroArch in January 2016. Whoa!

This seems like the right occasion to review a certain scene from the film 2001: A Space Oddessy.

1 Like