kingdozie101 / mame-rr

Automatically exported from code.google.com/p/mame-rr
0 stars 0 forks source link

Mame-rr doesn't compile on Linux (fix included) #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Mame-rr doesn't compile at all on Linux because there is some win32 code in it.
As Mame and Lua runs on Linux, I think that Mame-rr should run on Linux too.

The following patch should allow you to compile Mame-rr for Linux. So far it 
has only been tested on Ubuntu 10.10 but should work on other distributions too.
The patch just does the minimum, it disables the features that were using win32 
code and fixes the others.
I tested it with Street Fighter 2 and it runs, albeit slowly.

-First, cd to your source directory and apply the patch with the following 
command:
patch -p0 < mame-rr-linux-target.diff

-Then, download the lua 5.1 archive and decompress it in the directory of your 
choice.  

-Finally, you just need to provide LUA source directory like this :
LUA_SRC_DIR=/your/path/to/lua make

After the patch, Mame-rr should still compiles on Windows(not tested).
I hope it helps.

Original issue reported on code.google.com by jg.fou...@gmail.com on 5 Apr 2011 at 3:41

Attachments:

GoogleCodeExporter commented 8 years ago
I am unable to test your patch at this time. But if you could provide a working 
binary I can put it up for download.

Original comment by dammi...@hotmail.com on 10 Apr 2011 at 11:38