Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Raspberry Meka

Reply to topic
Author Message
  • Joined: 01 Jun 2012
  • Posts: 3
  • Location: Gateshead
Reply with quote
Raspberry Meka
Post Posted: Fri Jun 01, 2012 8:05 pm
Hey guys,
I have just got myself a raspberry pi and was wanting to give meka a try on that after trying the C64 tutorial they have on their website. I am completely new to linux and I'm struggling to get it working. I have unzipped the package and installed it all to /usr/lib/meka. is this the right thing to do or do certain parts need to go elsewhere?

I was also wondering if the problem is with the pi not being x86 and being an arm based system. do i need to compile the source for the arm and if so how do i go about it? I know from reading elsewhere on this forum that the project is a c++ one, but i don't even know how to compile any source code... ;(

any help would be much appreciated.

TC
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14681
  • Location: London
Reply with quote
Post Posted: Sat Jun 02, 2012 3:04 am
That won't work, I'm afraid. You will need to build it for ARM and I suspect there will be some incompatibilities.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Sat Jun 02, 2012 9:06 pm
The latest version of MEKA shouldn't require on any x86 code so I think it could code, although there might be some incompatibilities to fix.

If you have specific problem related to the MEKA code I'd be happy to help, but I can't help providing an exact step by step from the ground up.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Jun 2012
  • Posts: 3
  • Location: Gateshead
Reply with quote
Post Posted: Mon Jul 16, 2012 7:44 pm
Thought I would post some progress and get some feedback and help. I have been having a go at compiling Meka for the pi. I have been following the instructions from sources.txt:

- Install Allegro library, latest WIP.
- http://talula.com.demon.uk/allegro/wip.html#unstable
- $ .configure --enable-static
- $ make
- $ install
- Install NASM
- Get a package, or http://nasm.sourceforge.net
- Compile !
- Use provided Makefile.

I have installed the Allegro library, following the instructions on:
http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_SVN/Linux/Debian

only i used the source from: http://sourceforge.net/projects/alleg/files/latest/download
instead of the svn as the talula link is broken. The package is 5.0.6, but this was updated recently and they have switched from svn to GIT. I also used cmake rather than ccmake.

I am now trying to install NASM, but have found it to be x86 based only. I don't quite understand why is it needed to compile Meka as it looks like it's for assembly and not c++. Could anyone help me understand and is anyone aware of an Arm based alternative or know if I can compile under a different system for Arm?

Any pointers would be useful and appreciated. if anyone wants to know more detail of what I have done feel free to ask, I have been keeping a log, but it's on paper.

Cheers
TC
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14681
  • Location: London
Reply with quote
Post Posted: Mon Jul 16, 2012 7:57 pm
Parts of Meka are x86 assembly code, and obviously aren't going to work on the Pi. I'm not sure if there are plain C/C++ equivalents available.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Mon Jul 16, 2012 8:22 pm
Maxim wrote
Parts of Meka are x86 assembly code, and obviously aren't going to work on the Pi. I'm not sure if there are plain C/C++ equivalents available.

There should be C++ equivalent for everything now. I think it is a mistake that NASM is required by the Makefile. Can you try disabling out the NASM bits?
  View user's profile Send private message Visit poster's website
  • Joined: 01 Jun 2012
  • Posts: 3
  • Location: Gateshead
Reply with quote
Post Posted: Mon Jul 16, 2012 8:48 pm
Ok, I'll try looking for equivalents as and when I find assembly and disable NASM. I'll let you know how I get on although It might be a while until I get around to it. Thanks for the quick response.

TC
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Mon Jul 16, 2012 9:54 pm
TheCaptain wrote
Ok, I'll try looking for equivalents as and when I find assembly and disable NASM. I'll let you know how I get on although It might be a while until I get around to it. Thanks for the quick response.

TC

I got MEKA working on MacOS without any assembly so I know it is working.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Jul 2012
  • Posts: 51
  • Location: The Netherlands
Reply with quote
Post Posted: Sat Aug 04, 2012 8:01 pm
The information in sources.txt is incorrect aswell as the makefile provided.

You could try with these changes, but i'm not sure if all dependencies are there for Raspberry yet. I tried and it worked for ubuntu with a changed makefile.


@OMAR:
sources.txt:
II. Compile for GNU/Linux and other UN*X based systems:

- You are smart guys, you can figure it out!
- Install Allegro library, latest WIP.
- http://www.talula.demon.co.uk/allegro/wip.html#unstable
[don't know about this command did not use it:]
- $ ./configure --enable-static
- $ make
- $ make install
- $ For ubuntu see notes on allegro website
[remove]
- Install NASM
- Get a package, or http://nasm.sourceforge.net
[end remove]
- Compile !
- Use provided Makefile.
- Contact me thru the forum for any help. :)


in /srcs/Makefile
Change: z80marat/Z80DebugHelpers.c
to
z80marat/Z80DebugHelpers.cpp
this should be changed 3 times.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Jul 2012
  • Posts: 51
  • Location: The Netherlands
Reply with quote
Post Posted: Sun Aug 05, 2012 3:00 pm
I don't have a raspberry pi yet, but debian should be running on it.

Some quick tips on how to get allegro on debian can be found here:
http://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Linux/Debian
  View user's profile Send private message Visit poster's website
  • Joined: 22 Jul 2012
  • Posts: 51
  • Location: The Netherlands
Reply with quote
Post Posted: Sat Sep 08, 2012 9:38 pm
I tried the raspbian image - the others might be better suited for this purpose but didn't have time to check yet.

It builds fine but allegro is not working on the raspbian image for the raspberry pi due to currently limited opengl support.

So currently raspbian is a no go for meka.
  View user's profile Send private message Visit poster's website
  • Joined: 22 Jul 2012
  • Posts: 51
  • Location: The Netherlands
Reply with quote
Post Posted: Thu Jun 06, 2013 7:45 pm
I tried running it with dosbox on the raspberry pi (dosbox from the official respository v 0.74) with meka 0.70 for dos.

It starts/works but it's not playable as in terrible slow.

You can get csdpmi*b.zip here http://homer.rice.edu/~sandmann/djgpp/
example: csdpmi7b.zip

Other 'arm' devices might have more luck with dosbox and old meka, but the pi is a no go.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Feb 2004
  • Posts: 1464
  • Location: Sunny ol Tamworth, New England NSW AU
Reply with quote
Post Posted: Mon Jun 17, 2013 10:35 pm
Its a nice idea trying to get Meka to run on the Pi, but honestly the thing struggles with doing large compiles of code. I highly doubt it has the grunt to run Meka :)

Ahh its good to be back :D
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!