0 votes

I'm trying to build templates for other platforms, and when looking at the supported platforms with scons p="", the only platform listed is windows.

Was wondering if anyone might know why, or where I can investigate further. I'm not having much luck with articulating a question that gets any related search results.

in Engine by (5,264 points)

1 Answer

+1 vote
Best answer

Scons will detect any build toolchain installed/supported on your platform and will list them, but it doesn't mean it has no support for compiling for other platforms. For that, you need to install several SDK/build toolchains for each platform.

See the official Godot documentation on how to compile both the editor and export templates for each supported platform.

by (1,378 points)
selected by

Thanks. Knowing that I looked again more closely at the other sections and see that there is some information on cross compiling in the respective OS sections. Though there isn't all that much on setting up for Linux builds on Windows.

Though it seems maybe using Linux may be the better choice for creating the templates.

I use WSL linux (Ubuntu) subsystem for building Godot on Windows. Some say there's some overhead but I don't really care as long as it allows me to easily setup cross-compilation toolchain on Windows with ease. The steps are the same as setting up a regular linux environment, but on Windows.

Another options are MSYS, Cygwin...

And you might need this: https://gist.github.com/Xrayez/be9f7337d74554faf0b807b7380bf5eb

Appreciate the script and the response. X)

I had run through the instructions, also using Ubuntu on a VM. However, the compile seems to timeout at 48% on the 2.1.5 build I'm attempting. With both GCC v5 and Clang, same result. No indications of errors, just no progress in the terminal. I had let it run for 2 hours just in case, but when I returned it was still where it was.

I got mingw installed, but I haven't gotten to attempt a Windows cross compile. Though I'll probably keep doing this on Windows, unless it becomes more convenient to do them all together in the same environment.

For a last attempt I will try out some other distro tonight, because I would like to at least get a Linux template made in some setup before carrying on with it.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.