From 13e3a1985e89071edfcddb17f7872be5ee4114ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 29 Apr 2022 12:11:44 +0200 Subject: [PATCH] Compiling for Windows: Improve setup instructions --- .../compiling/compiling_for_windows.rst | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/development/compiling/compiling_for_windows.rst b/development/compiling/compiling_for_windows.rst index c6f4c3e17..c4e9699aa 100644 --- a/development/compiling/compiling_for_windows.rst +++ b/development/compiling/compiling_for_windows.rst @@ -16,12 +16,11 @@ For compiling under Windows, the following is required: will have to run/download the installer again.** - `MinGW-w64 `_ with GCC can be used as an alternative to Visual Studio. Be sure to install/configure it to use the ``posix`` thread model. - **Important:** When using MinGW to compile the ``master`` branch, you need GCC 9 or later. Because - MinGW has not officially released GCC 9 yet, you can get an alternate installer from - `here `_. + **Important:** When using MinGW to compile the ``master`` branch, you need GCC 9 or later. - `Python 3.5+ `_. -- `SCons 3.0 `_ build system. If using Visual Studio 2019, - you need at least SCons 3.1.1. + **Make sure to enable the option to add Python to the ``PATH`` in the installer.** +- `SCons `_ build system. Using the latest release is + recommended, especially for proper support of recent Visual Studio releases. .. note:: If you have `Scoop `_ installed, you can easily install MinGW and other dependencies using the following command:: @@ -40,13 +39,6 @@ For compiling under Windows, the following is required: .. seealso:: For a general overview of SCons usage for Godot, see :ref:`doc_introduction_to_the_buildsystem`. -Setting up Python ------------------ - -First you need to install Python 3.5 or newer. Make sure to enable the option -to add Python to the ``PATH`` in the Python installer. The SCons installer -should then detect and use the existing Python installation. - Setting up SCons ---------------- @@ -69,6 +61,10 @@ environment variable after installing it, then check again. You can do so by running the Python installer again and enabling the option to add Python to the ``PATH``. +If SCons cannot detect your Visual Studio installation, it might be that your +SCons version is too old. Update it to the latest version with +``python -m pip install --upgrade scons``. + .. _doc_compiling_for_windows_install_vs: Installing Visual Studio caveats