Sfoglia il codice sorgente

Merge pull request #2842 from Calinou/improve-mingw-troubleshooting

Mention additional MinGW compilation troubleshooting tips
Rémi Verschelde 5 anni fa
parent
commit
383540ad8f
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      development/compiling/compiling_for_windows.rst

+ 7 - 0
development/compiling/compiling_for_windows.rst

@@ -217,6 +217,13 @@ And for 32-bit::
     sudo update-alternatives --config i686-w64-mingw32-g++
     sudo update-alternatives --config i686-w64-mingw32-g++
     <choose i686-w64-mingw32-g++-posix from the list>
     <choose i686-w64-mingw32-g++-posix from the list>
 
 
+.. note::
+
+    Using certain MinGW distributions (e.g. from Homebrew) may result in a build
+    error about ``sprintf_s`` or ``wcscpy_s`` when compiling Godot. If this is
+    the case, try passing
+    ``CXXFLAGS="-DMINGW_HAS_SECURE_API"`` at the end of the SCons command line.
+
 Creating Windows export templates
 Creating Windows export templates
 ---------------------------------
 ---------------------------------