Scons:我无法添加qt4工具
我按照以下指南写了这封信:
http://www.scons.org/wiki/ToolsIndex
我尝试在以下位置查看 lp:scons-qt4:
包含项目的目录
~/.scons/site_scons/site_tools
~/.scons diretory
但是一个简单的 SConstruct 文件包含一行:
env = Environment (tools = ['default', 'qt4'])
仍然会产生错误消息:
scons: Reading SConscript files ...
EnvironmentError: No tool named 'qt4': not a Zip file:
File "/home/septi/Документы/ScanModule/SConstruct", line 3:
env = Environment (tools = ['default', 'qt4'])
File "/usr/lib/scons/SCons/Environment.py", line 991:
apply_tools(self, tools, toolpath)
File "/usr/lib/scons/SCons/Environment.py", line 105:
env.Tool(tool)
File "/usr/lib/scons/SCons/Environment.py", line 1691:
tool = SCons.Tool.Tool(tool, toolpath, **kw)
File "/usr/lib/scons/SCons/Tool/__init__.py", line 94:
module = self._tool_module()
File "/usr/lib/scons/SCons/Tool/__init__.py", line 154:
raise SCons.Errors.EnvironmentError(m)
那么,我做错了什么?也许我的版本不支持它或其他什么?我完全困惑不知道从哪里开始。
我运行的是 Ubuntu 10.10,scons 版本是 2.0.0.final.0.r5023。
I followed the following guide to the letter:
http://www.scons.org/wiki/ToolsIndex
I tried checking out lp:scons-qt4 in:
Directory with a project
~/.scons/site_scons/site_tools
~/.scons diretory
But a simple SConstruct file with a line:
env = Environment (tools = ['default', 'qt4'])
Still produces an error message:
scons: Reading SConscript files ...
EnvironmentError: No tool named 'qt4': not a Zip file:
File "/home/septi/Документы/ScanModule/SConstruct", line 3:
env = Environment (tools = ['default', 'qt4'])
File "/usr/lib/scons/SCons/Environment.py", line 991:
apply_tools(self, tools, toolpath)
File "/usr/lib/scons/SCons/Environment.py", line 105:
env.Tool(tool)
File "/usr/lib/scons/SCons/Environment.py", line 1691:
tool = SCons.Tool.Tool(tool, toolpath, **kw)
File "/usr/lib/scons/SCons/Tool/__init__.py", line 94:
module = self._tool_module()
File "/usr/lib/scons/SCons/Tool/__init__.py", line 154:
raise SCons.Errors.EnvironmentError(m)
So, what am I doing wrong? Maybe it's not supported in my version or something? I'm totally puzzled and don't know where to start.
I'm running Ubuntu 10.10, scons version is 2.0.0.final.0.r5023.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将工具添加到您家中的 .scons 目录只是最近添加的内容 - 您需要使用 SCons 2.1 或更高版本。
如果您想在项目中使用 qt4 工具,则必须将其添加到
/site_scons/site_tools/
中。当您使用该工具作为“qt4”时,则 site_tools 目录中的子目录必须称为“qt4”。它不能被称为“scons-qt4”或其他任何名称,这可能取决于您从启动板签出项目时传递给 bzr 的选项。Adding a tool to the .scons directory in your home was only a recent addition - you need to be using SCons 2.1 or later.
If you want to use the qt4 tool within a project, then you have to add it to
<project>/site_scons/site_tools/
. As you use the tool as "qt4", then the sub-directory must be called "qt4" within the site_tools directory. It can't be called "scons-qt4" or anything else, which may depend on the options you pass to bzr when you check out the project from launchpad.