mupen64plus-libretro-nx icon indicating copy to clipboard operation
mupen64plus-libretro-nx copied to clipboard

Fix OSX with Angrylion

Open kivutar opened this issue 3 years ago • 17 comments

Not a final version. But we can start discussing some fixes here.

kivutar avatar Apr 29 '21 07:04 kivutar

Because of your absence on the last PR, OSX support comes in through https://github.com/libretro/mupen64plus-libretro-nx/pull/286/files which is in staging.

m4xw avatar Apr 29 '21 12:04 m4xw

I will consult with ethan

m4xw avatar Apr 29 '21 16:04 m4xw

OK I updated this PR with the change on the types.

The changes I see in https://github.com/libretro/mupen64plus-libretro-nx/pull/286/files are not enough to compile the core on my machine.

Please note that this core segfaults in RetroArch on OSX in BufferedDrawer::_updateRectBuffer. The only place where I got it to work on OSX was in Ludo by forcing angrylion+cdx4.

kivutar avatar May 03 '21 05:05 kivutar

OK I updated this PR with the change on the types.

The changes I see in https://github.com/libretro/mupen64plus-libretro-nx/pull/286/files are not enough to compile the core on my machine.

Please note that this core segfaults in RetroArch on OSX in BufferedDrawer::_updateRectBuffer. The only place where I got it to work on OSX was in Ludo by forcing angrylion+cdx4.

With all the last changes? Ethan had it functional with Gliden iirc

m4xw avatar May 03 '21 09:05 m4xw

We will need to ifdef the GL proto change btw, apparently apple is a snowflake and uses a different typedef than khronos states?

m4xw avatar May 03 '21 10:05 m4xw

@m4xw I think we can merge this, what do you think?

It doesn't allow GL renderers, but at least allows Angrylion. And it doesn't break anything.

kivutar avatar May 23 '21 07:05 kivutar

The core does not allow for compiling without gliden so I don't want to merge AL only support that still compiles gliden. Its really the min standard. As is users would get crashes on start since you didnt adapt the default either and its already proven to work on osx at least, so find out where its crashing lol.

m4xw avatar May 23 '21 17:05 m4xw

Oh I was thinking that it would simply default to angrylion on libretro frontends that don't support hardware renderers.

kivutar avatar May 24 '21 03:05 kivutar

Oh I was thinking that it would simply default to angrylion on libretro frontends that don't support hardware renderers.

I wouldnt mind if we make gliden optional, but thats a bunch of work..

m4xw avatar May 28 '21 12:05 m4xw

Oh I was thinking that it would simply default to angrylion on libretro frontends that don't support hardware renderers.

I wouldnt mind if we make gliden optional, but thats a bunch of work..

Does OSX currently work with GlideN64 (as opposed to AngryLion)? I've only gotten crashes and assumed it was incompatible.

icthus56 avatar May 28 '21 16:05 icthus56

It used to with simliar minimal changes. Someone needs to take a look...

m4xw avatar May 28 '21 16:05 m4xw

Any updates on this, or should I just fire up a VM?

EDIT: I incorporated these changes and while it successfully built, the core crashes on launch.

ds8k avatar Oct 12 '21 02:10 ds8k

Any updates on this, or should I just fire up a VM?

EDIT: I incorporated these changes and while it successfully built, the core crashes on launch.

yea u need to default to angrylion

m4xw avatar Oct 13 '21 09:10 m4xw

It looks like the hardware renderer if working now:

Screen Shot 2021-11-11 at 12 27 46

I didn't change anything though. So maybe something changed in RA? I got this running with RA, master branch, compiled with ./configure && make I couldn't get it to run in the RA stable release, it was crashing.

With RA from xcode it segfaults on:

opengl::BufferedDrawer::_updateRectBuffer(graphics::Context::DrawRectParameters const&) + 653

kivutar avatar Nov 11 '21 05:11 kivutar

This pull request fixes 1 alert when merging 9aede57264f4d24ad887f26f2b69468e33812db2 into 018ee72b4fe247b38ed161033ad12a19bb936f00 - view on LGTM.com

fixed alerts:

  • 1 for Implicit function declaration

lgtm-com[bot] avatar Nov 11 '21 07:11 lgtm-com[bot]

was this ever finished?

Xenthio avatar Feb 14 '22 03:02 Xenthio

Yeah id love to know as well

ghost avatar Feb 22 '22 00:02 ghost

This pull request fixes 1 alert when merging ccc02929095b404522cd1dccedab3a7592a75d23 into c10546e333d57eb2e5a6ccef1e84cb6f9274c526 - view on LGTM.com

fixed alerts:

  • 1 for Implicit function declaration

lgtm-com[bot] avatar Oct 07 '22 14:10 lgtm-com[bot]

closed in favour of #474

m4xw avatar Jan 24 '23 17:01 m4xw