我们想用 arm 工具链为 arm 芯片构建钴。
首先,我们参考这个链接“ How to build for Raspberry Pi2 ”
然后,我们设置RASPI_HOME="./"
,创建一个文件夹"./sysroot"
,替换"raspi-1_"
为"raspi-2_"
1gyp_configuration.gypi1 并设置我们的 arm 工具链gyp_configuration.py
。
但我们收到如下错误消息,
Traceback (most recent call last):
File "./gyp_cobalt", line 271, in <module>
sys.exit(main(sys.argv[1:]))
File "./gyp_cobalt", line 261, in main
gyp_return = gyp_runner.BuildConfig(config_name)
File "./gyp_cobalt", line 175, in BuildConfig
return gyp.main(args)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/__init__.py", line 541, in main
return gyp_main(args)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/__init__.py", line 526, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 2277, in GenerateOutput
user_config)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 2223, in GenerateOutputForConfig
spec, config_name, generator_flags)
File "/cobalt/cobalt-git/src/tools/gyp/pylib/gyp/generator/ninja.py", line 405, in WriteSpec
config = spec['configurations'][config_name]
KeyError: 'raspi-2_debug'
我们是否必须正确设置其他配置?