-
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 when compiling from source #2107
Comments
I was able to compile the project after modifying the This link explains that this behavior isn't available in CMake especially for static linking: https://gitlab.kitware.com/cmake/cmake/-/issues/18090 P.S:The build script I am talking about is the |
The current love source code and megasource are building without issues, you can see it working here: https://github.com/love2d/love/actions/runs/11087159289/job/30805542624 It sounds like you probably have local modifications to one of those, or to the build process, which is causing problems for you.
This means you aren't building with LuaJIT, which love uses by default, so you definitely have modifications somewhere. |
@slime73 I am building the project from source on the main branch of love and megasource.
|
Something in your environment is causing a non-standard build (do you have any environment variables set, for example)? You can refer to the Github Actions CI builds for how a clean run will behave - and you can download them too if you just want a build with the latest 12.0 changes. |
I usually use |
I wouldn't be so sure of that. Even the Github Actions CI stuff has to take steps to prevent someone else's installed project from interfering (Strawberry Perl, which has caused issues for many github projects). In your previous posts you indicated that the version of Lua being included is not one that's provided by megasource (those support
That's just for the test framework that's run after a successful build, you don't need that. I run the same steps as the megasource readme describes on my own Windows computer and I have no issues. I'm positive you have something in your local environment that's interfering. You may want to post on the forums or discord server for further help, since the issue tracker isn't really a place for troubleshooting. |
Ok, I will close this issue anyway. |
Just another argument from the a CMake maintainer himself, https://gitlab.kitware.com/cmake/cmake/-/issues/18724
|
I am having trouble compiling from source on Windows using
megasource
.I am running:
I am getting these errors:
error C3861:
luaL_checkint
This is easily fixed by replacing the deprecated
luaL_checkint/luaL_optint
withluaL_checkinteger/luaL_optinteger
anyway.The 2 versions of the same function are even present close to each other, which is quite smelly.
love/src/modules/graphics/wrap_Mesh.cpp
Lines 352 to 355 in 8e6efac
error
LNK2001/LNK2019: unresolved external symbol
I guess there might be some linking errors caused by symbol name mangling because of missing
extern "C"
.Might be a little related with #2102.
Any thought about this issue?
The text was updated successfully, but these errors were encountered: