This repository was archived by the owner on Jun 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsect1-install.html
More file actions
81 lines (81 loc) · 3.64 KB
/
sect1-install.html
File metadata and controls
81 lines (81 loc) · 3.64 KB
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>14.2. 安装</title>
<link rel="stylesheet" href="docbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<meta name="keywords" content="源码, 编译, 安装, 卸载">
<link rel="home" href="index.html" title="小企鹅输入法(fcitx)">
<link rel="up" href="chapter-compile.html" title="第 14 章 编译安装流程">
<link rel="prev" href="chapter-compile.html" title="第 14 章 编译安装流程">
<link rel="next" href="sect1-uninstall.html" title="14.3. 卸载">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">14.2. 安装</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="chapter-compile.html">上一页</a> </td>
<th width="60%" align="center">第 14 章 编译安装流程</th>
<td width="20%" align="right"> <a accesskey="n" href="sect1-uninstall.html">下一页</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="sect1" title="14.2. 安装">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="sect1-install"></a>14.2. 安装</h2></div></div></div>
<p>首先下载 fcitx 的源码包,文件名为 fcitx-4.1.0.tar.bz2,存放在某个临时的目录中(如 <code class="filename">/temp</code> )。执行:</p>
<pre class="synopsis">cd <临时目录>
tar jxvf fcitx-4.1.0.tar.bz2</pre>
<p>这样会在临时目录(如 <code class="filename">/temp</code> )目录下建立目录 fcitx-4.1.0,所有的源码都在该目录中。</p>
<p>执行以下命令编译安装:</p>
<pre class="synopsis">
cd fcitx-4.1.0
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=<安装目录>
make && make install</pre>
<div class="variablelist" title="cmake 可选项(On/Off)">
<p class="title"><b>cmake 可选项(On/Off)</b></p>
<dl>
<dt><span class="term">-DENABLE_DBUS</span></dt>
<dd><p>如果禁用DBus,同时不会编译任何的IM Module</p></dd>
<dt><span class="term">-DENABLE_CAIRO</span></dt>
<dd><p>如果禁用,将无法使用fcitx-classic-ui</p></dd>
<dt><span class="term">-DENABLE_PANGO</span></dt>
<dd><p>如果禁用,将不使用 pango 进行字体绘制,将只能支持单一字体显示(在字符集不足时)。</p></dd>
<dt><span class="term">-DENABLE_TABLE</span></dt>
<dd><p>如果禁用,将不编译及生成码表相关数据</p></dd>
<dt><span class="term">-DENABLE_GTK2_IM_MODULE</span></dt>
<dd><p>如果禁用,将不编译GTK2的IM Module</p></dd>
<dt><span class="term">-DENABLE_GTK3_IM_MODULE</span></dt>
<dd><p>如果禁用,将不编译GTK3的IM Module</p></dd>
<dt><span class="term">-DENABLE_QT_IM_MODULE</span></dt>
<dd><p>如果禁用,将不编译QT4的IM Module</p></dd>
<dt><span class="term">-DENABLE_OPENCC</span></dt>
<dd><p>如果禁用,将不使用OpenCC作为简繁转换的后端</p></dd>
</dl>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="chapter-compile.html">上一页</a> </td>
<td width="20%" align="center"><a accesskey="u" href="chapter-compile.html">上一级</a></td>
<td width="40%" align="right"> <a accesskey="n" href="sect1-uninstall.html">下一页</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">第 14 章 编译安装流程 </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td>
<td width="40%" align="right" valign="top"> 14.3. 卸载</td>
</tr>
</table>
</div>
</body>
</html>