Build Your Own Arcade Controls Forum

Software Support => GroovyMAME => Topic started by: keilmillerjr on July 10, 2019, 01:53:51 am

Title: GroovyMAME for Mac OS X
Post by: keilmillerjr on July 10, 2019, 01:53:51 am
Is there any benefit to compiling MAME for Mac OS X with the groovy patch?
Title: Re: GroovyMAME for Mac OS X
Post by: Substring on July 13, 2019, 06:58:28 am
can mac os resolution be switched like on linux or windows ? does groovymame support mac os ?
Title: Re: GroovyMAME for Mac OS X
Post by: keilmillerjr on July 23, 2019, 03:45:57 pm
SwitchResX creates custom resolutions. 🤔

https://www.madrau.com/srx_howtouseit/srx_howtouseit/srx_timings.html
Title: Re: GroovyMAME for Mac OS X
Post by: Substring on July 23, 2019, 04:53:42 pm
Still, GM needs to be able to switch resolution in the fly for mac. And I have absolutely no idea if the mac display server is compatible with X and xrandr. All the display stuff is OS specific
Title: Re: GroovyMAME for Mac OS X
Post by: keilmillerjr on July 24, 2019, 01:03:02 am
Still, GM needs to be able to switch resolution in the fly for mac. And I have absolutely no idea if the mac display server is compatible with X and xrandr. All the display stuff is OS specific

Found this claiming to be xrandr for mac: https://github.com/jakehilborn/displayplacer/blob/master/README.md
Title: Re: GroovyMAME for Mac OS X
Post by: Substring on July 24, 2019, 03:33:05 am
Can't check atm, but i think it uses the C library, not the binary
Title: Re: GroovyMAME for Mac OS X
Post by: Doozer on July 27, 2019, 01:04:25 pm
Can't check atm, but i think it uses the C library, not the binary
Hi,

The Linux GM uses the libxrandr to managed resolution switches. I have some Mac specific sections but I never tested a Mac built. If Mac has libxrandr support, using GM should be straightforward.
Title: Re: GroovyMAME for Mac OS X
Post by: keilmillerjr on July 27, 2019, 03:35:05 pm
Can't check atm, but i think it uses the C library, not the binary
Hi,

The Linux GM uses the libxrandr to managed resolution switches. I have some Mac specific sections but I never tested a Mac built. If Mac has libxrandr support, using GM should be straightforward.

I think it has libxrandr support?

https://github.com/practicalswift/osx/tree/master/src/x11libs/libXrandr/libXrandr-1.3.1

Will check soon and see if i have the binary already installed.
Title: Re: GroovyMAME for Mac OS X
Post by: Substring on July 27, 2019, 05:03:33 pm
It's not a binary, it's a shared library you need. Such as .dll in windows, or .so in linux. You'll also need C/C++ dev packages in order to compile.

Reading https://docs.mamedev.org/initialsetup/compilingmame.html#apple-mac-os-x is probably necessary too
Title: Re: GroovyMAME for Mac OS X
Post by: keilmillerjr on July 27, 2019, 08:53:38 pm
It's not a binary, it's a shared library you need. Such as .dll in windows, or .so in linux. You'll also need C/C++ dev packages in order to compile.

Reading https://docs.mamedev.org/initialsetup/compilingmame.html#apple-mac-os-x is probably necessary too

libXrandr binary. Ive been patching and compiling mame for linux and mac os x. Thats why i was wondering about groovy patch and mac os x. See my mame-diffs github repo.

Edit: home after an extremely long day. I have xrandr installed on mac os x.
Title: Re: GroovyMAME for Mac OS X
Post by: Doozer on July 28, 2019, 02:20:05 am
It's not a binary, it's a shared library you need. Such as .dll in windows, or .so in linux. You'll also need C/C++ dev packages in order to compile.

Reading https://docs.mamedev.org/initialsetup/compilingmame.html#apple-mac-os-x is probably necessary too

libXrandr binary. Ive been patching and compiling mame for linux and mac os x. Thats why i was wondering about groovy patch and mac os x. See my mame-diffs github repo.

Edit: home after an extremely long day. I have xrandr installed on mac os x.
This is the standalone xrandr executable. Sometime ago, I rewrote the xrandr part and used the libxrandr shared library instead.

Game might not be over still, if you have the "ldd" command, what is ldd xrandr outputing?
Title: Re: GroovyMAME for Mac OS X
Post by: Doozer on July 28, 2019, 02:29:48 am
I found info on the Net.

By default Mac OS does not have libxrandr support.

You can find some unofficial source to have it installed.

E.g. first entry from Google: https://github.com/practicalswift/osx/tree/master/src/x11libs/libXrandr/libXrandr-1.3.1

Let me know if you managed to get one installed. I can check the code to make it compatible if you have bit of time available for compilation. FYI I do not own a Mac, it might require some itterations.