Scons:我无法添加qt4工具

发布于 2024-10-12 06:36:54 字数 1215 浏览 2 评论 0原文

我按照以下指南写了这封信:

http://www.scons.org/wiki/ToolsIndex

我尝试在以下位置查看 lp:scons-qt4:

  1. 包含项目的目录

  2. ~/.scons/site_scons/site_tools

  3. ~/.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:

  1. Directory with a project

  2. ~/.scons/site_scons/site_tools

  3. ~/.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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许你一世情深 2024-10-19 06:36:54

将工具添加到您家中的 .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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文