1

我正在尝试编译 Godot Engine - Godot Engine,它是一个用 C++ 制作的 3D 游戏引擎。根据最新的 Godot Docs - Compiling Godot on Windows,我试图在我的 32 位 Windows 7 Ultimate PC 上编译 Godot。

我使用命令从官方来源安装了 Scons -

./setup.py 安装

所以,我确实安装成功,没有任何错误。

然后我下载了 Visual C++ 构建工具并安装了它,提示也可以正常工作。

我在目录 C:\python27\ 中安装了 Python2.7 使用 -

蟒蛇--版本

此外,它似乎工作正常。

但是,当我使用当前目录打开 Visual Studio C++ 的 Bash 提示时,我运行这些命令 -

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>

这里有什么问题?有什么我想念的吗?

4

0 回答 0