In an attempt to run the latest version of MAME on an old Acer Aspire One D257, I ended up going down a Haiku rabbit hole… The last time I touched a BeOS-like OS was 5 PE back in the 90s, so this has been a learning experience!
I’ve made some updates to the mame-0.226 recipe and manually applied the patches, working out the differences as I went. But I’ve hit an issue early on with the build: make is complaining.
make: *** No rule to make target 'build/projects/sdl/mame/gmake-haiku/Makefile' needed by 'haiku_x64'. Stop.
Obviously I am brand new to HaikuPorts, so all my knowledge comes from looking at the wiki yesterday.
I wasn’t able to build 0.226 as the recipe prerequires python2, which I guess was removed from the repos relatively recently.
I’m currently at a loss for where to go next. I don’t know MAME’s build system, and I’m guessing that asking the MAME dev community will result in the response “OS not supported”. I’m hoping that someone here will be able to point me in the right direction.
What should my next steps be? Fork haikuports/haikuports, create a branch and put my current work there?
BTW, yes, I know I could just run a lightweight Linux distro on the laptop, but where’s the fun in that?
Thanks for checking this out, we could always use some help
In regards to python2.7, this has been removed quite some time ago now, has seen it’s EOL.
Now, without seeing what you’ve done so far it’s hard to tell what the problem is, my first guess would be that no Makefile (or the like) is found/created?
You could fork haikuports etc, create a branch and do your work in there, then create a PR for it, we could have a look and guide you through eventual problems comming up.
As far as I know it’s not possible to cross-compile haikuporter on Linux.
I looked a bit into the newer version and re-applied current patchset as far as I could, but stranded up in an error in the file toolchain.lua (probably missed something there)
I use MAME for some of my own projects (hacking on the VTech V.Smile console). So I’m happy to get an up to date version with less bugs than the previous one. That’s all
Puts it in a very different way when commenting like this If all is working fine it’s progress then
PR is live, most is almost in there (missing patch needs to be added), and I had to use the internal lua instead of the system one because of linking errors. (which @thelastpsion already reported).
It’s been merged! Thank you to @Begasus for all of your help with this! Also thanks to @korli for finding the upstream fix for FreeBSD that also worked for Haiku.
I think the only thing that isn’t working properly is MAME’s bgfx graphics driver, but that’s hardly the end of the world and could be fixed at a later date.
Thanks for your patience on this one, took several attemps to get the build up and running, kudos to your work!
Now crossing fingers things work out OK on the buildmasters.