Install from scratch - Compile error

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

Installation, from scratch

  1. Downloaded and installed latest Visual Studio Community 2019 with c++ (latest as of date June 14 2020)
  2. Installed this version of python: https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe
  3. python -m pip install scons

D:\godot>python --version Python 3.8.3

D:\godot>scons --version SCons by Steven Knight et al.: script: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog engine: v3.1.2.bee7caf9defd6e108fc2998a2520ddb36a967691, 2019-12-17 02:07:09, by bdeegan on octodog engine path: ['d:\\program files\\python38\\lib\\site-packages\\scons\\SCons'] Copyright (c) 2001 - 2019 The SCons Foundation

  1. https://central.github.com/deployments/desktop/desktop/latest/win32 and use it to pull this location GitHub - godotengine/godot: Godot Engine – Multi-platform 2D and 3D game engine
    into D:\godot

  2. went to x86_x64 Cross Tools Command Prompt for VS 2019

  3. cd to d:\godot

  4. run scons platform=windows

___________________________________________________________________________________

This is the error I receive:
___________________________________________________________________________________
D:\godot>scons platform=windows
scons: Reading SConscript files …
Configuring for Windows: target=debug, bits=default
Found MSVC compiler: x86_amd64
Compiled program architecture will be a 64 bit executable (forcing bits=64).
YASM is necessary for WebM SIMD optimizations.
WebM SIMD optimizations are disabled. Check if your CPU architecture, CPU bits or platform are supported!
Checking for C header file mntent.h… (cached) no
scons: done reading SConscript files.
scons: Building targets …
[Initial build] Compiling ==> platform\windows\crash_handler_windows.cpp
crash_handler_windows.cpp
platform\windows\crash_handler_windows.cpp(56): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(24): note: see declaration of ‘std’
platform\windows\crash_handler_windows.cpp(56): error C3646: ‘image_name’: unknown override specifier
platform\windows\crash_handler_windows.cpp(56): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
platform\windows\crash_handler_windows.cpp(57): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(24): note: see declaration of ‘std’
platform\windows\crash_handler_windows.cpp(57): error C3646: ‘module_name’: unknown override specifier
platform\windows\crash_handler_windows.cpp(57): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
platform\windows\crash_handler_windows.cpp(78): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(24): note: see declaration of ‘std’
platform\windows\crash_handler_windows.cpp(78): error C3646: ‘name’: unknown override specifier
platform\windows\crash_handler_windows.cpp(78): error C2059: syntax error: ‘(’
platform\windows\crash_handler_windows.cpp(78): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
platform\windows\crash_handler_windows.cpp(79): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(24): note: see declaration of ‘std’
platform\windows\crash_handler_windows.cpp(79): error C3646: ‘undecorated_name’: unknown override specifier
platform\windows\crash_handler_windows.cpp(79): error C2059: syntax error: ‘(’
platform\windows\crash_handler_windows.cpp(79): error C2334: unexpected token(s) preceding ‘{’; skipping apparent function body
platform\windows\crash_handler_windows.cpp(105): error C2039: ‘image_name’: is not a member of ‘module_data’
platform\windows\crash_handler_windows.cpp(55): note: see declaration of ‘module_data’
platform\windows\crash_handler_windows.cpp(107): error C2039: ‘module_name’: is not a member of ‘module_data’
platform\windows\crash_handler_windows.cpp(55): note: see declaration of ‘module_data’
platform\windows\crash_handler_windows.cpp(108): error C2039: ‘image_name’: is not a member of ‘module_data’
platform\windows\crash_handler_windows.cpp(55): note: see declaration of ‘module_data’
platform\windows\crash_handler_windows.cpp(109): error C2039: ‘module_name’: is not a member of ‘module_data’
platform\windows\crash_handler_windows.cpp(55): note: see declaration of ‘module_data’
platform\windows\crash_handler_windows.cpp(184): error C2039: ‘string’: is not a member of ‘std’
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\vector(24): note: see declaration of ‘std’
platform\windows\crash_handler_windows.cpp(184): error C2065: ‘string’: undeclared identifier
platform\windows\crash_handler_windows.cpp(184): error C2146: syntax error: missing ‘;’ before identifier ‘fnName’
platform\windows\crash_handler_windows.cpp(184): error C2065: ‘fnName’: undeclared identifier
platform\windows\crash_handler_windows.cpp(184): error C2039: ‘undecorated_name’: is not a member of ‘symbol’
platform\windows\crash_handler_windows.cpp(62): note: see declaration of ‘symbol’
platform\windows\crash_handler_windows.cpp(187): error C2065: ‘fnName’: undeclared identifier
platform\windows\crash_handler_windows.cpp(187): warning C4477: ‘fprintf’ : format string ‘%s’ requires an argument of type ‘char *’, but variadic argument 3 has type ‘DWORD’
platform\windows\crash_handler_windows.cpp(187): warning C4313: ‘fprintf’: ‘%s’ in format string conflicts with argument 3 of type ‘DWORD’
platform\windows\crash_handler_windows.cpp(187): warning C4473: ‘fprintf’ : not enough arguments passed for format string
platform\windows\crash_handler_windows.cpp(187): note: placeholders and their parameters expect 4 variadic arguments, but 3 were provided
platform\windows\crash_handler_windows.cpp(187): note: the missing variadic argument 4 is required by format string ‘%d’
platform\windows\crash_handler_windows.cpp(189): error C2065: ‘fnName’: undeclared identifier
platform\windows\crash_handler_windows.cpp(189): warning C4473: ‘fprintf’ : not enough arguments passed for format string
platform\windows\crash_handler_windows.cpp(189): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
platform\windows\crash_handler_windows.cpp(189): note: the missing variadic argument 2 is required by format string ‘%s’
scons: *** [platform\windows\crash_handler_windows.windows.tools.64.obj] Error 2
scons: building terminated because of errors.
___________________________________________________________________________________

:bust_in_silhouette: Reply From: mrgenie

After adding the c++ MFC it works.