-
Notifications
You must be signed in to change notification settings - Fork 405
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
Compilation errors with Lua 5.4.7 #2102
Comments
If you can send a PR for it, we'll review it. Note that our official distribution is compiled using LuaJIT, for compatibility and performance reasons. |
Ok so I researched the situation a bit more, and discovered this: https://github.com/lua/lua/blob/v5.4/lauxlib.h#L282. Adding #define LUA_COMPAT_APIINTCASTS 1 enables the compatibility mode and fixes the compilation error. This reveals another compilation error about This one is fixed by adding #include "llimits.h" to the includes in the file. And after that Love2D compiles well with Lua 5.4.7 (*). So the conclusion I came to here is: I don't think that creating a meaningful PR for this is possible? (*) -- For future reference, of course this required changing all Lua5.1-related paths and constants in the makefile, and then creating the project and building with the LuaJit off flag:
|
Adding |
Yes, it would be great to simplify usage of Love2D with any LuaVM of choice. Also, the CMakeFiles of Love2D and megasource have the Alternatively maybe |
Getting some compilation errors when using latest Lua 5.4.7, like:
There's quite a number of them, these are just some examples, but all of then are in the
wrap_*.cpp
files.I think that the explanation can be found in the last point of section
8.3 – Changes in the API
at https://www.lua.org/manual/5.3/manual.html.Long story short -- these macros are deprecated, and need to be replaced with different calls for Lua 5.3+.
It would be great if Love2D would handle this to support the most rececnt Lua versions.
The text was updated successfully, but these errors were encountered: