New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support lua51. #15
Comments
Is this the right repo? |
We intend to use Lua 5.3 because it has bit operators, which makes life a lot easier to write functions that test bits in memory. Do you absolutely have to use an old Lua version? |
The only way for me to support a system lua in RetroArch's configure is to check only The alternative would be to fix upstream lua to provide their own shared libraries and pkgconfig files so it could be consistent to test for specific versions, but I'm not holding my breath on that... From lua53.
And in lua51.
So this diff seems to at least build, would it be acceptable?
|
@leiradel Any further comments? |
Only that I still don't understand the issue. |
I see two reasons.
|
Sorry, I still don't understand. RetroArch doesn't include rcheevos yet, so it can use whatever Lua it wants, either integrated as source code or from the system. rcheevos needs Lua 5.3, so why patch it to link against other versions? |
I'm not sure who added it, but rcheevos is exposed by https://github.com/libretro/RetroArch/tree/0aa9df6acd91212880150554651573d9571f1697/deps/rcheevos Honestly I think using lua is causing more problems than its worth, but its not my call. :) |
I believe it was @meleu , in order to debug the issues that appeared with rcheevos on Android.
I know nothing about this other functionality that needs Lua, but I have plenty of experience with it both as a programmer and embedding it into other applications and it's a breeze to work with, but that's also not my call either. |
Just for reference one issue is that when built with Another issue is the mess with upstream lua and shared libraries I was hoping to work around here. |
Hm, maybe mpv doesn't work with 5.3? Is this with latest? I can take a look later. |
I'm not sure if it works with 5.3 or not, but its built against 5.1 by default here which works fine. It should occur with the mpv and RetroArch master. Edit: I asked in the mpv irc channel and was told anything other than lua5.3 or newer... |
|
You need to build mpv with |
I did an |
Yes, that one. https://github.com/mpv-player/mpv If you need any help building it let me know, they use |
Actually I forgot three details, first that
Here is a workaround, but there will be no audio when using the mpv core in RetroArch which is not important for testing this.
Second you need to build RetroArch with And third my memory was flawed and the crashes only occur when trying to use the builtin mpv core by loading a video file. |
For reference here is the unfinished PR for libmpv to fix the audio. |
The master branch of libretro-mpv as I left it seems to have the audio callback functions commented out, so your patch shouldn't be required and should compile fine without any changes to mpv (other than enabling shared libs), unless if you're using the audio-cb-new branch of the repo. I'm having another crack at fixing this audio callback nonsense in libretro-mpv... |
I was trying to work on building RetroArch with a system version of lua as requested in issue libretro/RetroArch#8153.
However this is made impossible by two things.
If rcheevos built and worked with any lua version this would be a lot easier to support.
The current build problem is.
This feature is apparently not supported by lua51.
The text was updated successfully, but these errors were encountered: