我正在尝试在Windows计算机上安装此工具,该操作将持续2周。从GitHub克隆存储库后,说明明确要求转到我的顶级源目录并键入scons
以便在我的机器上构建Alta。但是,每次我在命令行中使用扫描时,都会出现以下错误:
scons: Reading SConscript files ...
File "/mnt/c/Users/jjohnson497-gtri/Documents/Greg/alta/SConstruct", line 38
print '<<ERROR>> You need to specify a configuration file using:'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('<<ERROR>> You need to specify a configuration file using:')?
SConstruct代码的第一部分:
#
# Copyright (C) 2014, 2015 CNRS
# Copyright (C) 2013, 2014, 2015, 2016 Inria
# Copyright (C) 2015 Universite de Montreal
#
# This file is part of ALTA.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import sys
import SCons.SConf as C
# Arrange so that the 'obtain' module can always be imported.
top_srcdir = Dir('.').srcnode().abspath
sys.path += [ top_srcdir + '/external' ]
## Add ALTA custom cmd configurations
##
AddOption('--cfg', help='Specify a configuration file')
## Import configuration from a config file
##
configFile = GetOption('cfg')
if configFile == None:
if sys.platform == 'win32':
configFile = "./configs/scons/config-windows-cl.py"
elif sys.platform == 'darwin':
configFile = "./configs/scons/config-macos-clang.py"
elif sys.platform == 'linux2':
configFile = "./configs/scons/config-linux-gcc.py"
else:
print '<<ERROR>> You need to specify a configuration file using:'
print '<<ERROR>> scons --cfg=[filename]'
print '<<ERROR>> Please find example of configuration files in ${ALTA}/configs/scons/'
Exit(1)
#end
为什么修复导入的脚本会给我一个错误?如果证明有效,我就不必更改任何内容。我什至尝试使用scons --cfg=./configs/scons/config-linux-gcc.py
之类的标志来指定。这是我指的页面:http://alta.gforge.inria.fr/install.html