中级会员
- 积分
- 290
- 金钱
- 290
- 注册时间
- 2019-9-4
- 在线时间
- 52 小时
|
1金钱
> scons --target=mdk5
scons: Reading SConscript files ...
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-4: ordinal not in range(128):
File "C:\Users\shipors\Desktop\LidarCar\rt-thread\bsp\LidarCarBSP\SConstruct", line 32:
Export('RTT_ROOT')
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Script\SConscript.py", line 666:
env = self.factory()
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Script\SConscript.py", line 646:
default_env = SCons.Defaults.DefaultEnvironment()
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Defaults.py", line 88:
_default_env = SCons.Environment.Environment(*args, **kw)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Environment.py", line 982:
apply_tools(self, tools, toolpath)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Environment.py", line 107:
env.Tool(tool)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Environment.py", line 1789:
tool(self)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\__init__.py", line 296:
self.generate(env, *args, **kw)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\default.py", line 40:
for t in SCons.Tool.tool_list(env['PLATFORM'], env):
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\__init__.py", line 1266:
c_compiler = FindTool(c_compilers, env) or c_compilers[0]
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\__init__.py", line 1169:
if t.exists(env):
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\msvc.py", line 296:
return msvc_exists(env)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 772:
vcs = cached_get_installed_vcs(env)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 537:
ret = get_installed_vcs(env)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 548:
VC_DIR = find_vc_pdir(ver)
File "D:\BaiduNetdiskDownload\env\tools\ConEmu\ConEmu\..\..\..\tools\Python27\Lib\site-packages\scons\SCons\Tool\MSCommon\vc.py", line 377:
debug('find_vc_dir(): found VC in registry: {}'.format(comps))
|
最佳答案
查看完整内容[请看2#楼]
你在你这个BSP的SConstruct文件中加个,
DefaultEnvironment(tools=[])
在env = Environment(tools = ['mingw'],
|