SCONS build only has windows platform.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avencherus

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.

:bust_in_silhouette: Reply From: Xrayez

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.

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.

avencherus | 2018-07-09 13:30

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: Build the latest MinGW toolchain · GitHub

Xrayez | 2018-07-09 16:39

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.

avencherus | 2018-07-09 18:44