Browse Source

Compiling for Windows: Improve setup instructions

Rémi Verschelde 3 years ago
parent
commit
13e3a1985e
1 changed files with 8 additions and 12 deletions
  1. 8 12
      development/compiling/compiling_for_windows.rst

+ 8 - 12
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 <http://mingw-w64.org/>`_ 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 <https://jmeubank.github.io/tdm-gcc/articles/2020-03/9.2.0-release>`_.
+  **Important:** When using MinGW to compile the ``master`` branch, you need GCC 9 or later.
 - `Python 3.5+ <https://www.python.org/downloads/windows/>`_.
-- `SCons 3.0 <https://www.scons.org/>`_ 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 <https://www.scons.org/>`_ build system. Using the latest release is
+  recommended, especially for proper support of recent Visual Studio releases.
 
 .. note:: If you have `Scoop <https://scoop.sh/>`_ 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