File: ch02s07s03.html

package info (click to toggle)
gimp-help 2%2B0.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 30,852 kB
  • ctags: 4
  • sloc: xml: 104,248; sh: 544; makefile: 262; perl: 42
file content (118 lines) | stat: -rw-r--r-- 7,098 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>7.3. 安装新插件</title>
    <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
    <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.66.1" />
    <link rel="start" href="index.html" title="&#10;      &#10;    " />
    <link rel="up" href="ch02s07.html" title="7. 插件" />
    <link rel="prev" href="ch02s07s02.html" title="7.2. 使用插件" />
    <link rel="next" href="ch02s07s04.html" title="7.4. 写插件" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center" id="chaptername">7.3. 安装新插件</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ch02s07s02.html">上一页</a> </td>
          <th width="60%" align="center" id="sectionname">7.3. 安装新插件</th>
          <td width="20%" align="right"> <a accesskey="n" href="ch02s07s04.html">下一页</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect2" lang="zh_CN" xml:lang="zh_CN">
      <div class="titlepage">
        <div>
          <div>
            <h3 class="title"><a id="gimp-plugins-install"></a>7.3. 安装新插件</h3>
          </div>
        </div>
      </div>
      <p>
      GIMP 发行版本所附带的插件不需要任何特别的安装。而那些您自己下载的则需要。这有一些方法,它们依赖与您使用何种操作系统以及插件的结构。在 Linux 下,安装新插件常常是相当简单的;在 Windows 下,要么简单要么非常难。不管怎么说,最好把它们单独分开讨论。
    </p>
      <div class="simplesect" lang="zh_CN" xml:lang="zh_CN">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3285516"></a>Linux</h4>
            </div>
          </div>
        </div>
        <p>
        大部分插件可划分为两类:源代码由单个的 .c 文件构成的比较小的一类和源代码由多个文件和一个 Makefile 包含在一个目录中的比较大的一类。
      </p>
        <p>
        对单个文件的插件,比如叫 <tt class="filename">borker.c</tt>,通过命令 <span><b class="command">gimptool-2.0 --install borker.c</b></span> 来安装它。该命令编译插件然后安装到您的个人插件目录中,<tt class="filename">~/gimp-2.0/plugins</tt> 除非您已经改变。这将使下次启动 GIMP 时自动载入。您不需要 root 权限来干这些事;实际上,您也不应当这样。当然如果插件编译失败,那就是另外一回事了。
      </p>
        <p>
        可是一旦您安装完毕,如何运行它们呢?其在菜单的路径由插件本身决定。所以要回答这个问题,您可以通过看插件的文档(如果有的话),或打开插件描述对话框(扩展/插件浏览器)搜索其插件名并使用<span class="guilabel">树状列表</span>。如果仍然没有找到,就只能浏览各个菜单或看该插件源代码的注册部分---这或许是最简单的。
      </p>
        <p>
        对于包装成一个目录的复杂些的插件,一般其中都有 INSTALL 或 README 这两个文件,其中有安装指令。如果没有,最好将这些插件放入回收站而把时间花在另外的上面:这种毫不关心用户的代码将使人感到非常沮丧。
      </p>
        <p>
        一些插件(特别是那些基于 GIMP 插件模板的)被设计为安装到 GIMP 主系统目录中,而不是您个用户目录下。这时,您需要变为 root 来完成安装的最后一步(“make install”)。
      </p>
        <p>
        如果安装在个人插件目录中插件和在系统插件目录中的有相同的名字,就只有一个被载入,那就是在您用户目录中的。当您每次启动 GIMP 时,您都会收到消息告知您这些。因此可能最好要避免这种情况发生。
      </p>
      </div>
      <div class="simplesect" lang="zh_CN" xml:lang="zh_CN">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3285930"></a>Windows</h4>
            </div>
          </div>
        </div>
        <p>
        Windows 是一个在编软件方面比 Linux 更难捉摸的环境。现在每个 Linux 发行版本提供完整的编译软件工具,而且它们运作的方式也差不多。但是 Windows 并步附带这些工具。虽然有可能在 Windows 中建立一个很好编软件的环境,但是需要要么有足够的金钱,要么有大量的知识并耗费相当的精力。
      </p>
        <p>
	在关于 GIMP 插件中,意味着:要么您有编软件的环境,要么没有。如果没有,最好希望能找到在某处找到一个已经编译好的版本(或说服某人帮您编译),然后您只需要简单地把其放到您的个人插件目录下。如果您确实有编软件地环境(这里是指您能编译 GIMP ),也就是说您毫无疑问已经知道不少这方面的东西了,所以只需要跟着 Linux 的指令做。
      </p>
        <p>
        如果您想建立一个编软件环境,并准备无所畏惧地投入其中,您可以在 GIMP Wiki 中找到一个适当的当前关于如何开始的介绍 <a href="http://wiki.gimp.org/gimp/HowToCompileGimp_2fMicrosoftWindows" target="_top">HowToCompileGimp/MicrosoftWindows</a>。由于这是个 Wiki,任何人都可以编辑它,所以请添加基于您自己经验的建议,以便让它保持最新。
      </p>
      </div>
      <div class="simplesect" lang="zh_CN" xml:lang="zh_CN">
        <div class="titlepage">
          <div>
            <div>
              <h4 class="title"><a id="id3285625"></a>Macintosh</h4>
            </div>
          </div>
        </div>
        <p>
        我们可以使用这儿的一些材料。
      </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ch02s07s02.html">上一页</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="ch02s07.html">上一级</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="ch02s07s04.html">下一页</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">7.2. 使用插件 </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">起始页</a>
          </td>
          <td width="40%" align="right" valign="top"> 7.4. 写插件</td>
        </tr>
      </table>
    </div>
  </body>
</html>