contributing/development/compiling/compiling_for_windows #10
Replies: 12 comments 25 replies
-
I think the following line is incorrect:
Shouldn't it say the binary should be in the root directory of the engine source, which is where the scons command is run? |
Beta Was this translation helpful? Give feedback.
-
If you're using Windows 10/11 Pro with Hyper-V enabled, you can have a clean build machine spawned relatively quickly.
|
Beta Was this translation helpful? Give feedback.
-
Where do you get libEGL.dll and libGLESv2.dll? |
Beta Was this translation helpful? Give feedback.
-
It's a minor thing, but on a Windows platform, the default name of the tool is not "scons" but "SCons", so instead of running command "python -m scons platform=windows", you should run "python -m SCons platform=windows" |
Beta Was this translation helpful? Give feedback.
-
The guide explains how to build the Godot project for the first time but fails to explain how to iterate if one is not using Visual Studio Community. There's no explanation how to rebuild Godot after code changes. I tried to naively modify the code, and simpy run "scons" command again, but it did a complete rebuild of the project again, having to wait 10 minutes again just to recompile single changed line of code. Where's the documentation about how to actually iterate on code changes? |
Beta Was this translation helpful? Give feedback.
-
When running "scons platform=windows" the build terminates with the following error: platform\windows\console_wrapper_windows.cpp(31): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory I followed the instructions to the letter, what am I missing? |
Beta Was this translation helpful? Give feedback.
-
Just wanted to point out that somewhere between the end of august 2024 and January 2025 something broke my build with visual studio 2019. After digging around I fixed it, but here's what happened: Somewhere along the way the min version of windows SDK changed. I've updated visual studio 2019, and the WindowsSDK version to 10.0.19041.685 and this seemed to fix it. Edit: Regenerating the solution with the updated master fixes assert issue failing. Scons now properly adds the CFLAGS and CXXFLAGS. And after digging around turns out that: And finally, something kinda strange. I've tried updating the scons vsproj file to see if that fixed it somehow before all this.
I think something went wrong with godotengine/godot#91069 This is what my scons says when generating the project file. Not sure why it uses the wrong platform toolset.
Also, not sure what happened, but I could swear generating the project file used to be really fast before. |
Beta Was this translation helpful? Give feedback.
-
When I |
Beta Was this translation helpful? Give feedback.
-
I was trying to build Godot 3.6 following this tutorial and it was giving me a weird syntax error:
I already had Python 3.13 installed and since the tutorial asks for 3.8+ I thought it was fine... It wasn't. |
Beta Was this translation helpful? Give feedback.
-
Hello, When compiling with mingw I get the error: scons platform=windows use_mingw=yes,cannot find specified file platform\windows\godot_windows.windows.tools.64.o] I added Path for minigw, then changed Path for vcvars64.bat but neither of these options helped. Running vcvars64.bat didn't help either. After entering arch=x86_64 I received information that MSVC ignores architecture overwriting. I have a 64-bit processor Does anyone know of possible causes and solutions that I haven't tried? |
Beta Was this translation helpful? Give feedback.
-
Hello guys, do you now how to get rid of build errors on Windows/VS Code with external thirdpartiy libs ? How to get them linked easily ? I got these errors with clang/MinGW-LLVM : clang-cl: error: no such file or directory: '/external:W0' |
Beta Was this translation helpful? Give feedback.
-
Ok, but when I add use_mingw=yes, I got this message : ERROR: No valid compilers found, use MINGW_PREFIX environment variable to set MinGW path. As nothing is specified I took llvm-mingw-20250430-msvcrt-x86_64 version of MinGW-LLVM. Which I added to path, to a MINGW_PREFIX variable too with value : "C:/Program Files/llvm-mingw-20250430-msvcrt-x86_64/", and in tasks.json as "mingw_prefix=C:/Program Files/llvm-mingw-20250430-msvcrt-x86_64/". Always same error :( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
contributing/development/compiling/compiling_for_windows
Requirements: For compiling under Windows, the following is required: Visual Studio Community, version 2017 or later. VS 2019 is recommended. Make sure to read "Installing Visual Studio caveats" be...
https://docs.godotengine.org/en/latest/contributing/development/compiling/compiling_for_windows.html
Beta Was this translation helpful? Give feedback.
All reactions