我正在尝试使用 SCons 在 Windows 7 上设置用于编译的项目。在 MSys shell 中,我 cd 到相应的文件夹并运行:
scons target=setup
...我得到以下输出:
scons: Reading SConscript files ...
SCons 2.0.1
OS="'{' is not recognized as an internal or external command,
operable program or batch file."
Compiler version check failed - need gcc 3.x or later:
CC: gcc None
CXX: g++ None
目录中SConscript文件的开头是:
import os, sys, commands, string
from makeversion import get_version
# OS Detection:
OS = commands.getoutput('uname')
在我看来,最后一行是错误的根源。为什么我会收到错误,我该如何解决?