Build error 'alloca' macro redefined

I was building this game after cloning the source repo:

While building I encountered these errors for many scripts.

What does this error mean?
And how do I fix this?

Note that the warnings are just warnings.
The errors are marked “error”, and should be the first focus.

In this case, it’s an old project (we normally refer to the issues page for 3rd party projects).
The fix is to update some of the dependencies.
Open game.project in the editor, and set these dependencies:

https://github.com/indiesoftby/defold-scene3d/archive/refs/tags/1.2.1.zip
https://github.com/britzl/ludobits/archive/7.1.0.zip
https://github.com/britzl/defold-screenshot/archive/refs/tags/1.11.0.zip
https://github.com/britzl/defold-clipboard/archive/1.3.0.zip
https://github.com/indiesoftby/defold-pointer-lock/archive/2.0.0.zip
https://github.com/subsoap/defos/archive/refs/tags/v.2.7.0.zip

After that, choose “Fetch Libraries” from the meny.
Now, you should eb able to build the project.

2 Likes

It worked. Thanks a lot!!