-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Failing to compile on on target but not on host (Unsupported Lua version in cross compilation) #1634
Comments
The log is saying it clearly: |
Does this explain the rest of the errors? Because when I define SOL_NO_COMPAT it still has hundreds of errors which you can see below in the log, hoping this is just 5.5 Thanks so much though and also out of curiosity, why does it work on Linux then with 5.5? (Compiling to host target) I will update once I have 5.4 |
Once an
Most probably sol is linking against a pre-installed supported lua package on linux, hence the compilation succeeds there. Tried compiling your project with |
I have made my own megasource repo that is similar to love2ds as I did not want most of the libraries they had and I also wanted to static link. I am using their version of Lua5.1.5. When compiling I get the following:
It seems that this version does not have |
Your project compiles fine on my machine. |
It seemed to be part of compat. I have updated to lua5.4 in my megasource repo which I meant to post here after getting it to work. I unfortunately became busy that day and forgot to update here. The megasource repo is now using lua5.4 which I have cobbled together myself and it seems to work alright. It could also be why it compiled correctly for you, that or I just have a misconfiguration on my machine. If you want me to look into the Let me know and if you're happy I will close this issue or you can if you like |
It is fine on my side, if you your issue is resolved, feel free to close it. |
This is enough to to cause the error, anything that includes sol causes it for me. For context, if I do not cross compile and I build for the host machine (Linux x64), everything goes well and compiles fine.
A compilation log is visible here. The build command is visible there however I will also paste it here:
I am using sol2 and lua both as submodules in a folder called
vendor
where vender has it's own CMakeLists.txt file:This
vendor
folder is then included into the root project throughadd_subdirectory(vendor)
and then the library project is added withadd_subdirectory(engine)
. My project is available here if it helps.Thanks for your time! Hopefully this is just a simple misconfiguration on my end
The text was updated successfully, but these errors were encountered: