SCons не может обнаружить инструменты Visual Studio Build 2017 для Windows 7 - PullRequest
0 голосов
/ 12 мая 2018

Я пытаюсь скомпилировать Godot Engine - Godot Engine , который является движком 3D-игр, созданным на C ++.Согласно последним документам Godot - Компиляция Godot на Windows , я пытался скомпилировать Godot на моем 32-битном ПК с Windows 7 Ultimate.

Я установил Scons из официальных источников с помощью Command -

. / Setup.py install

Итак, я успешно установил без ошибок.

Затем я скачал инструменты сборки Visual C ++ и установил его,Подсказка также работает нормально.

Я установил Python2.7 в каталог C: \ python27 \ Using -

python --version

Также,кажется, что он работает правильно.

Но, когда я открываю Bash Prompt Visual Studio C ++ с существующим каталогом, я запускаю эти команды -

cd.
cd \godot-master\
C:/python2.7/scons.bat p=windows

Меня встречает странная ошибка,

C:\godot-gles2\godot-gles2>C:/python27/scons.bat p=windows
scons: Reading SConscript files ...

scons: warning: No version of Visual Studio compiler found - C/C++ compilers mos
t likely not set correctly
File "C:\godot-gles2\godot-gles2\SConstruct", line 3, in <module>

scons: warning: No version of Visual Studio compiler found - C/C++ compilers mos
t likely not set correctly
File "C:\godot-gles2\godot-gles2\SConstruct", line 71, in <module>
Configuring for Windows: target=debug, bits=default
Found MSVC compiler: x86
Compiled program architecture will be a 32 bit executable. (forcing bits=32).
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str':
  File "C:\godot-gles2\godot-gles2\SConstruct", line 327:
    detect.configure(env)
  File "./platform/windows\detect.py", line 343:
    configure_msvc(env, manual_msvc_config)
  File "./platform/windows\detect.py", line 196:
    env.Append(CPPPATH=[os.getenv("WindowsSdkDir") + "/Include"])

C:\godot-gles2\godot-gles2>

В чем здесь проблема?Я что-то упускаю?

...