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.

asked Jul 9, 2018 in Engine by avencherus (4,811 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.

answered Jul 9, 2018 by Xrayez (1,236 points)
selected Jul 9, 2018 by avencherus

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 How to use this Q&A? before posting your first questions.