Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
97c1c46c
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
97c1c46c
编写于
10月 10, 2018
作者:
N
Nathan Willis
提交者:
Khaled Hosny
10月 30, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: update and linearize build instructions; add installation overview material.
上级
088755f9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
188 addition
and
41 deletion
+188
-41
docs/usermanual-install-harfbuzz.xml
docs/usermanual-install-harfbuzz.xml
+188
-41
未找到文件。
docs/usermanual-install-harfbuzz.xml
浏览文件 @
97c1c46c
<chapter
id=
"install-harfbuzz"
>
<chapter
id=
"install-harfbuzz"
>
<title>
Install HarfBuzz
</title>
<title>
Installing HarfBuzz
</title>
<section
id=
"download"
>
<section
id=
"download"
>
<title
id=
"download.title"
>
Download
</title>
<title
id=
"download.title"
>
Download
ing HarfBuzz
</title>
<para>
<para>
For tarball releases of HarfBuzz, look
The HarfBuzz source code is hosted at
<ulink
<ulink
url=
"http://www.freedesktop.org/software/harfbuzz/release/"
>
here
</ulink>
.
url=
"https://github.com/harfbuzz/harfbuzz"
>
github.com/harfbuzz/harfbuzz
</ulink>
. The
At the same place you will
same source tree is also available at the
also find Win32 binary bundles that include libharfbuzz DLL, hb-view.exe,
<ulink
hb-shape.exe, and all dependencies.
url=
"http://cgit.freedesktop.org/harfbuzz/"
>
Freedesktop.org
</ulink>
site.
</para>
</para>
<para>
<para>
The canonical source tree is available
Tarball releases and Win32 binary bundles (which include the
<ulink
url=
"http://cgit.freedesktop.org/harfbuzz/"
>
here
</ulink>
.
libharfbuzz DLL, hb-view.exe, hb-shape.exe, and all
Also available on
<ulink
url=
"https://github.com/harfbuzz/harfbuzz"
>
github
</ulink>
.
dependencies) of HarfBuzz can be downloaded from
<ulink
url=
"https://github.com/harfbuzz/harfbuzz"
>
github.com/harfbuzz/harfbuzz/releases
</ulink>
or from
<ulink
url=
"http://www.freedesktop.org/software/harfbuzz/release/"
>
Freedesktop.org
</ulink>
.
</para>
</para>
<para>
<para>
The API that comes with
<filename
class=
'headerfile'
>
hb.h
</filename>
will
Release notes are posted with each new release to provide an
not change incompatibly. Other, peripheral, headers are more likely to go
overview of the changes. The project
<ulink
url=
"https://github.com/harfbuzz/harfbuzz/issues"
>
tracks bug
through minor modifications, but again, will do our best to never change
reports and other issues
</ulink>
on GitHub. Discussion and
API in an incompatible way. We will never break the ABI.
questions are welcome on the
<ulink
url=
"http://freedesktop.org/mailman/listinfo/harfbuzz/"
>
HarfBuzz
mailing list
</ulink>
.
</para>
</para>
<para>
<para>
If you are not sure whether Pango or HarfBuzz is right for you, read
The API included in the
<filename
<ulink
url=
"http://mces.blogspot.in/2009/11/pango-vs-harfbuzz.html"
>
this
</ulink>
.
class=
'headerfile'
>
hb.h
</filename>
file will not change in a
compatibility-breaking way in any release. However, other,
peripheral headers are more likely to go through minor
modifications. We will do our best to never change APIs in an
incompatible way. We will
<emphasis>
never
</emphasis>
break the ABI.
</para>
</para>
</section>
</section>
<section
id=
"building"
>
<section
id=
"building"
>
<title>
Building
</title>
<title>
Building HarfBuzz
</title>
<section
id=
"building.linux"
>
<title>
Building on Linux
</title>
<para>
<para>
On Linux, install the development packages for FreeType, Cairo, and GLib.
<emphasis>
(1)
</emphasis>
To build HarfBuzz on Linux, you must first install the
For example, on Ubuntu / Debian, you would do:
development packages for FreeType, Cairo, and GLib. The exact
<programlisting>
commands required for this step will vary depending on
<command>
sudo apt-get install
</command>
<package>
gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
</package>
the Linux distribution you use.
</programlisting>
</para>
whereas on Fedora, RHEL, CentOS, and other Red Hat based systems you would do:
<para>
For example, on an Ubuntu or Debian system, you would run:
<programlisting>
<programlisting>
<command>
sudo yum install
</command>
<package>
gcc gcc-c++ freetype-devel glib2-devel cairo-devel
</package>
<command>
sudo apt install
</command>
<package>
gcc g++ libfreetype6-dev libglib2.0-dev libcairo2-dev
</package>
</programlisting>
</programlisting>
or using MacPorts
:
On Fedora, RHEL, CentOS, or other Red-Hat
–
based systems, you would run
:
<programlisting>
<programlisting>
<command>
sudo port install
</command>
<package>
freetype glib2 cairo
</package>
<command>
sudo yum install
</command>
<package>
gcc gcc-c++ freetype-devel glib2-devel cairo-devel
</package>
</programlisting>
</programlisting>
</para>
<para>
<emphasis>
(2)
</emphasis>
The next step depends on whether you
are building from the source in a downloaded release tarball or
from the source directly from the git repository.
</para>
<para>
<emphasis>
(2)(a)
</emphasis>
If you downloaded the HarfBuzz
source code in a tarball, you can now extract the source.
</para>
<para>
From a shell in the top-level directory of the extracted source
code, you can run
<command>
./configure
</command>
followed by
<command>
make
</command>
as with any other standard package.
</para>
<para>
This should leave you with a shared
library in the
<filename>
src/
</filename>
directory, and a few
utility programs including
<command>
hb-view
</command>
and
<command>
hb-shape
</command>
under the
<filename>
util/
</filename>
directory.
</para>
</para>
<para>
<para>
If you are using a tarball, you can now proceed to running
<emphasis>
(2)(b)
</emphasis>
If you are building from the source in the HarfBuzz git
<command>
configure
</command>
and
<command>
make
</command>
as with any
repository, rather than installing from a downloaded tarball
other standard package. That should leave you with a shared library in
release, then you must install two more auxiliary tools before you
<filename>
src/
</filename>
, and a few utility programs including hb-view
can build for the first time:
<package>
pkg-config
</package>
and
and hb-shape under
<filename>
util/
</filename
>
.
<ulink
url=
"http://www.complang.org/ragel/"
>
ragel
</ulink
>
.
</para>
</para>
<para>
<para>
If you are bootstrapping from git, you need a few more tools before you
On Ubuntu or Debian, run:
can run
<filename>
autogen.sh
</filename>
for the first time. Namely,
pkg-config and
<ulink
url=
"http://www.complang.org/ragel/"
>
ragel
</ulink>
.
Again, on Ubuntu / Debian:
<programlisting>
<programlisting>
<command>
sudo apt-get install
</command>
<package>
autoconf automake libtool pkg-config ragel gtk-doc-tools
</package>
<command>
sudo apt-get install
</command>
<package>
autoconf automake libtool pkg-config ragel gtk-doc-tools
</package>
</programlisting>
</programlisting>
and on Fedora, RHEL, CentOS
:
On Fedora, RHEL, CentOS, run
:
<programlisting>
<programlisting>
<command>
sudo yum install
</command>
<package>
autoconf automake libtool pkgconfig ragel gtk-doc
</package>
<command>
sudo yum install
</command>
<package>
autoconf automake libtool pkgconfig ragel gtk-doc
</package>
</programlisting>
</programlisting>
or using MacPorts:
</para>
<para>
With
<package>
pkg-config
</package>
and
<package>
ragel
</package>
installed, you can now run
<command>
./autogen.sh
</command>
,
followed by
<command>
./configure
</command>
and
<command>
make
</command>
to build HarfBuzz.
</para>
</section>
<section
id=
"building.windows"
>
<title>
Building on Windows
</title>
<para>
On Windows, consider using Microsoft's free
<ulink
url=
"https://github.com/Microsoft/vcpkg"
>
vcpkg
</ulink>
utility
to build HarfBuzz, its dependencies, and other open-source
libraries.
</para>
<para>
If you need to build HarfBuzz from source, first put the
<program>
ragel
</program>
binary on your
<literal>
PATH
</literal>
, then follow the appveyor CI cmake
<ulink
url=
"https://github.com/harfbuzz/harfbuzz/blob/master/appveyor.yml"
>
build
instructions
</ulink>
.
</para>
</section>
<section
id=
"building.macos"
>
<title>
Building on macOS
</title>
<para>
There are two ways to build HarfBuzz on Mac systems: MacPorts
and Homebrew. The process is similar to the process used on a
Linux system.
</para>
<para>
<emphasis>
(1)
</emphasis>
You must first install the
development packages for FreeType, Cairo, and GLib. If you are
using MacPorts, you should run:
<programlisting>
<programlisting>
<command>
sudo port install
</command>
<package>
autoconf automake libtool pkgconfig ragel gtk-doc
</package>
<command>
sudo port install
</command>
<package>
freetype glib2 cairo
</package>
</programlisting>
</programlisting>
</para>
</para>
<para>
If you are using Homebrew, you should run:
<programlisting>
<command>
brew install
</command>
<package>
freetype glib cairo
</package>
</programlisting>
</para>
<para>
<emphasis>
(2)
</emphasis>
The next step depends on whether you are building from the
source in a downloaded release tarball or from the source directly
from the git repository.
</para>
<para>
<emphasis>
(2)(a)
</emphasis>
If you are installing HarfBuzz
from a downloaded tarball release, extract the tarball and
open a Terminal in the extracted source-code directory. Run:
<programlisting>
<command>
./configure
</command>
</programlisting>
followed by:
<programlisting>
<command>
make
</command>
</programlisting>
to build HarfBuzz.
</para>
<para>
<emphasis>
(2)(b)
</emphasis>
Alternatively, if you are building
HarfBuzz from the source in the HarfBuzz git repository, then
you must install several built-time dependencies before
proceeding.
</para>
<para>
If you are
using MacPorts, you should run:
<programlisting>
<command>
sudo port install
</command>
<package>
autoconf
automake libtool pkgconfig ragel gtk-doc
</package>
</programlisting>
to install the build dependencies.
</para>
<para>
If you are using Homebrew, you should run:
<programlisting>
<command>
brew install
</command>
<package>
autoconf automake libtool pkgconfig ragel gtk-doc
</package>
</programlisting>
Finally, you can run:
<programlisting>
<command>
./autogen.sh
</command>
</programlisting>
</para>
<para>
<emphasis>
(3)
</emphasis>
You can now build HarfBuzz (on either
a MacPorts or a Homebrew system) by running:
<programlisting>
<command>
./configure
</command>
</programlisting>
followed by:
<programlisting>
<command>
make
</command>
</programlisting>
</para>
<para>
This should leave you with a shared
library in the
<filename>
src/
</filename>
directory, and a few
utility programs including
<command>
hb-view
</command>
and
<command>
hb-shape
</command>
under the
<filename>
util/
</filename>
directory.
</para>
</section>
</section>
</section>
</chapter>
</chapter>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录