MAME and USB joypads under Haiku

Forum thread started by danboid on Thu, 2015-04-30 21:42

Has anyone managed to build MAME, AdvanceMAME or any other version of MAME for Haiku? It'd be great to see it in the depot. The official MAME makefile includes 'support' for Haiku as a build option but I've not been able to get past the first file before I get a fatal error.

I've tried archive.org's Internet arcade under WebPositive and Qupzilla but it failed to work under both.

I've noticed DOSemu is in the depot so we should be able to run MAME under that but I'm not keen on running and emu under another emu if it can be avoided, especially when its open source and claims to support Haiku.

Does Haiku support USB joypads and joysticks to get the most out of MAME etc?

Comments

Re: MAME and USB joypads under Haiku

Hi!

I did the work on getting MAME to recognize Haiku. You will probably need a gcc4 compiler for this, and use the SDL version of MAME.

USB joypads should work as well, there is a known issue but it is specific to Logitech "Precision Gamepad" devices (which I've found to be problematic also in other places). Anything else should work just fine.

Re: MAME and USB joypads under Haiku

Will be fine to have support for usb compedission pro too

Re: MAME and USB joypads under Haiku

Hi PulkoMandy!

That's good news on the joypad support but sdlmame is no more - its been integrated into the official MAME now. I've tried compiling a a few different versions of both MAME and Advance MAME but compilation doesn't get far before its required to start hacking the source code.

Newer version of MAME don't even compile the first file which is something to do with lua. It seems MAME bundles its own version of lua and expects you to build and use this instead of using any version you may already have installed - I know lua is in the depot. I think MAME 0.147 was the last non-lua version but I didn't get much further with building that.

Do you remember what version of MAME (or sdlmame) it was that you patched and managed to build PulkoMandy?

Re: MAME and USB joypads under Haiku

It seems MAME 0.147 was the first to have some Haiku support but I've had no luck compiling that with GCC2 or 4 and, despite what its homepage says, there are no longer any source packages available for download from the sdlmame site.

Re: MAME and USB joypads under Haiku

I've had the most success in bulding MAME under Haiku with AdvanceMAME git but it still doesn't get very far.

https://sourceforge.net/p/advancemame/bugs/245/

Re: MAME and USB joypads under Haiku

I suggested that running MAME under DOSBox might be a possibility but probably not wth its current build in HaikuDepot as the keyboard mapping is broken and it seems very unstable too.

Re: MAME and USB joypads under Haiku

I started to write a recipe for MAME, but I won't have much time during the week ends this month. Please be a bit more patient :) As for dosbox, the keyboard mapping is configurable in their options screen: http://www.dosbox.com/DOSBoxManual.html#KeyMapper . Providing a preset configuration file would be an option. (I uploaded the package for use in my porting of Open Watcom, which uses it in non-interactive mode to run some old DOS tools to generate its documentation, so I didn't need the keyboard working).

Re: MAME and USB joypads under Haiku

That's great news PM as I'll be surprised if the AdvanceMAME developer finds time to fix compilation under our super-niche OS of choice. He'd probably have to install Haiku to do so and chances are he won't have the time or motivation. Its homepage does state it should work under any platform supported by SDL though.

Are you writing a recipe for the official MAME or AdvanceMAME? When you've finished it, will it make it into HaikuDepot or will this be an addition to HaikuPorter?

Re: MAME and USB joypads under Haiku

Btw... what happened to the other emulators like:

Snes or / Zsnes ?

Are they ready to run on Haiku?

Re: MAME and USB joypads under Haiku

Dunno if can help builders, but here's an old discussion about compiling MAME under Syllable:

http://forum.syllable.org/viewtopic.php?t=1921

Re: MAME and USB joypads under Haiku

Re: MAME and USB joypads under Haiku

AdvanceMAME now builds and runs great under Haiku including sound and USB joypad support!

If you want to build it yourself, you need to download the latest git code as well as advancemame-1.3.tar.gz from http://advancemame.sourceforge.net/beta/ . After extracting 1.3, copy its src subdir into your advmame git dir and then run:

./autogen.sh
./configure --prefix=/boot/apps/advance --with-emu=mame
make
make install

In the advancemame git folder.

Big thanks to Andrea Mazzoleni for adding Haiku support to AdvanceMAME!

Re: MAME and USB joypads under Haiku

It would be very nice to add the equivalent build recipe at haikuports. games-emulation/advancemame/advancemame-1.3.recipe

Re: MAME and USB joypads under Haiku

WOW. Nice one. I am going to try this over the weekend. Big thanks!

Re: MAME and USB joypads under Haiku

I've not tried building it yet but AdvanceMESS has also been ported now too so you can play all those classic N64, PSX, Amiga, C64, NES etc etc games under Haiku now too! :D

I was testing MAME out last night and I was delighed to see stuff like Ridge Racer, Strider 2 and Mortal Kombat 2 all running perfectly. What an amazing project!

I'd want to wait until AdvanceMAME/MESS 1.3 get release before writing a recipe. I expect it won't be much longer now.

Re: MAME and USB joypads under Haiku

I tried BeS9x Ver.1.41-1 (http://www.snes9x.com)and it is working very well.
At start the media_addon_server crashes often. After restart the Mediserver the sound will work.

Re: MAME and USB joypads under Haiku

I added a recipe for version 1.3 beta at HaikuPorts. It builds OK but I couldn't test because of a lack of ROM.

Re: MAME and USB joypads under Haiku

My little contribution to this thread :-) :

I had ZSNES v 1.36 working very well (Sound and USB joypad supported). It's an old BeOS binary, but works perfectly under Haiku. I don't know if still avaible on the web (I dont remember where I get it, possibly Bebits or Haikuware).

If someone needs it, please tell me and I will send it.

Re: MAME and USB joypads under Haiku

The MAME website provides some freely downloadable ROMs (legally with agreement from the original developers): http://mamedev.org/roms/

Re: MAME and USB joypads under Haiku

danboid wrote:

AdvanceMAME now builds and runs great under Haiku including sound and USB joypad support!

If you want to build it yourself, you need to download the latest git code as well as advancemame-1.3.tar.gz from http://advancemame.sourceforge.net/beta/ . After extracting 1.3, copy its src subdir into your advmame git dir and then run:

./autogen.sh
./configure --prefix=/boot/apps/advance --with-emu=mame
make
make install

In the advancemame git folder.

Big thanks to Andrea Mazzoleni for adding Haiku support to AdvanceMAME!

Thanks for sharing this info !!! I managed to compile it under gcc2_hibryd. :-)

Also, I tried to compile MESS, but I got the following error:

make install
/bin/install -c -d -m 755 /boot/apps/advanceMess/bin
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance
/bin/install -c -d -m 755 /boot/apps/advanceMess/doc/advance
/bin/install -c -d -m 755 /boot/apps/advanceMess/man/man1
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/rom
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/sample
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/artwork
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/image
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/crc
/bin/install -c -d -m 755 /boot/apps/advanceMess/share/advance/snap
make: *** No rule to make target `src/sound/discrete.c', needed by `obj/mess/generic/blend/sound/discrete.o'.  Stop.

Re: MAME and USB joypads under Haiku

korli:

Thanks for creating the advancemame recipe! I'll have to try that out soon.

un_spacyar:

You're right about building MESS - that's as far as I managed to get too. I told the author of this prob but I've not chased him up on it as I've been on holiday and stuff:

http://sourceforge.net/p/advancemame/bugs/245/

Note that I've not been able to login to sf.net under Web+ or qupzilla - I've had to use Linux to report and reply to sf.net tickets. I've reported this bug to the qupzilla tracker.