Author Topic: Mame4All on Cubietruck  (Read 7988 times)

fruit-bat

  • Guest
Mame4All on Cubietruck
« on: March 28, 2014, 07:06:21 pm »
Cut and shut job to get Mame4All on Cubietruck. Needs lots of work but I'm busy so thought I would get it published anyhow. Works with 2 joysticks and uses hardware scaling so nice and fast...

https://github.com/fruit-bat/ct-mame4allSdl2

Needs SDL 2...

https://github.com/fruit-bat/ct-sdl2

I need to create a list of credits, which again I will try and get round to. In the mean time thanks everyone, much appreciated!

Runs in Linaro using pat-3.4.79 kernel. I have patched my kernel to allow low sample rate audio over HDMI and put some 'fixes' into the display driver. Let me know how you get on.

Hope you have fun.

Build instructions...
1) build SDL2
# git clone https://github.com/fruit-bat/ct-sdl2.git
# cd ct-sdl2
# ./configure --prefix=/usr
# make -j2
# sudo make install

2) build mame
# git clone https://github.com/fruit-bat/ct-mame4allSdl2.git
# cd ct-mame4allSdl2
# make -j2 -f makefile.ct mame
« Last Edit: April 15, 2014, 04:06:07 am by fruit-bat »

ikeeki

  • Guest
Re: Mame4All on Cubietruck
« Reply #1 on: March 28, 2014, 09:09:49 pm »
+1
Raring to test it

Offline swampy

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Mame4All on Cubietruck
« Reply #2 on: March 29, 2014, 01:07:38 am »
Great!  ;D

fruit-bat

  • Guest
Re: Mame4All on Cubietruck
« Reply #3 on: April 12, 2014, 05:18:09 am »
Build instructions...
1) build SDL2
# git clone https://github.com/fruit-bat/ct-sdl2.git
# cd ct-sdl2
# ./configure --prefix=/usr
# make -j2
# sudo make install

2) build mame
# git clone https://github.com/fruit-bat/ct-mame4allSdl2.git
# cd ct-mame4allSdl2
# make -j2 -f makefile.ct mame
« Last Edit: April 15, 2014, 04:06:20 am by fruit-bat »

ikeeki

  • Guest
Re: Mame4All on Cubietruck
« Reply #4 on: April 12, 2014, 04:33:59 pm »
Hi again, I've tried to install all the stuff in a folder, but cannot find the mame executable, do I have to set prefix /usr mandatorily?
Can you explain a little bit more what to do once I've built mame?
Where do the roms go?
Can you point a wiki for this mame?
ThanksĀ”
« Last Edit: April 12, 2014, 05:14:32 pm by ikeeki »

fruit-bat

  • Guest
Re: Mame4All on Cubietruck
« Reply #5 on: April 14, 2014, 02:05:42 pm »
Hi ikeeki,

If all went well you should have an executable 'mame' in the folder which you issued the make.

From here on it gets a bit manual. Make yourself a couple of sub-folders 'roms' and 'samples'. Put some files in the 'roms' folder and start mame from the command line with the name of the rom you want to boot.

Key assignments are rather esoteric...
F11 for fullscreen
q - quit
Esc - coin
Enter - Player 1
Ctrl - fire 1
Alt - fire 2
Arrow keys - joystick

Its easier to use a joystick for the time being.

I will try and get round to makeing an 'install' target in the make script to make this process easier. To be honest I'm amazed you managed to get it to compile. I'm really pleased that you are trying it out!

Don't hesitate to ask if you have more questions.

Also, if you find any errors in the code please let me know so I can correct them.




ikeeki

  • Guest
Re: Mame4All on Cubietruck
« Reply #6 on: April 14, 2014, 02:39:58 pm »
the prob is that Im risking to move aside / overwrite certain libs in my distro, and right now everything is in a fragile balance... So I'll try in a clean copy of cubiuntu, but the compiled version with prefix=/hole/linaro/cubiload/programs/mame/ isa already in new versions of cubiuntu (even if users like it or not  ;D )

By the way, -j2 could be used in every
Code: [Select]
make?
I have done it and no probs...
« Last Edit: April 14, 2014, 02:43:59 pm by ikeeki »

Offline rjosal

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Mame4All on Cubietruck
« Reply #7 on: February 24, 2015, 10:18:35 pm »
What tweaks were made to SDL2?  I want to judge if this is better than compiling vanilla SDL2 for the purpose of compiling and running pure MAME.