|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
%version-entities;
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
]>
|
|
Packit |
a43c12 |
<refentry id="orc-building" revision="29 may 2009">
|
|
Packit |
a43c12 |
<refmeta>
|
|
Packit |
a43c12 |
<refentrytitle>Building Orc and Applications That Use Orc</refentrytitle>
|
|
Packit |
a43c12 |
<manvolnum>3</manvolnum>
|
|
Packit |
a43c12 |
<refmiscinfo>Orc</refmiscinfo>
|
|
Packit |
a43c12 |
</refmeta>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<refnamediv>
|
|
Packit |
a43c12 |
<refname>Building Orc and Applications that use Orc</refname>
|
|
Packit |
a43c12 |
<refpurpose>
|
|
Packit |
a43c12 |
How to build Orc and applications using it.
|
|
Packit |
a43c12 |
</refpurpose>
|
|
Packit |
a43c12 |
</refnamediv>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<refsect1>
|
|
Packit |
a43c12 |
<title>Building Orc on UNIX</title>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<para>
|
|
Packit |
a43c12 |
On UNIX, Orc uses the standard GNU build system,
|
|
Packit |
a43c12 |
using <application>autoconf</application> for package
|
|
Packit |
a43c12 |
configuration and resolving portability issues,
|
|
Packit |
a43c12 |
<application>automake</application> for building makefiles
|
|
Packit |
a43c12 |
that comply with the GNU Coding Standards, and
|
|
Packit |
a43c12 |
<application>libtool</application> for building shared
|
|
Packit |
a43c12 |
libraries on multiple platforms. The normal sequence for
|
|
Packit |
a43c12 |
compiling and installing the Orc library is thus:
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<literallayout>
|
|
Packit |
a43c12 |
<userinput>./configure</userinput>
|
|
Packit |
a43c12 |
<userinput>make</userinput>
|
|
Packit |
a43c12 |
<userinput>make install</userinput>
|
|
Packit |
a43c12 |
</literallayout>
|
|
Packit |
a43c12 |
</para>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<para>
|
|
Packit |
a43c12 |
The standard options provided by <application>GNU
|
|
Packit |
a43c12 |
autoconf</application> may be passed to the
|
|
Packit |
a43c12 |
<command>configure</command> script. Please see the
|
|
Packit |
a43c12 |
<application>autoconf</application> documentation or run
|
|
Packit |
a43c12 |
<command>./configure --help</command> for information about
|
|
Packit |
a43c12 |
the standard options.
|
|
Packit |
a43c12 |
</para>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<para>
|
|
Packit |
a43c12 |
By default, code generators for all targets are built into the
|
|
Packit |
a43c12 |
library. Embedded system developers may wish to use the
|
|
Packit |
a43c12 |
--enable-backed option, which will disable all other code
|
|
Packit |
a43c12 |
generators, saving about 200 kB in binary size. Outside of
|
|
Packit |
a43c12 |
embedded systems, using --enable-backend is not recommended.
|
|
Packit |
a43c12 |
</para>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
</refsect1>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<refsect1>
|
|
Packit |
a43c12 |
<title>Building Orc Applications</title>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<para>
|
|
Packit |
a43c12 |
Applications and libraries can use <command>pkg-config</command> to get all the
|
|
Packit |
a43c12 |
needed compiler and linker flags to build against Orc. The following
|
|
Packit |
a43c12 |
commands will provide the necessary compiler and linker flags:
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<literallayout>
|
|
Packit |
a43c12 |
<userinput>pkg-config --cflags orc-&ORC_MAJORMINOR;</userinput>
|
|
Packit |
a43c12 |
<userinput>pkg-config --libs orc-&ORC_MAJORMINOR;</userinput>
|
|
Packit |
a43c12 |
</literallayout>
|
|
Packit |
a43c12 |
</para>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
<para>
|
|
Packit |
a43c12 |
When compiling from source, the default installation directory is not
|
|
Packit |
a43c12 |
in the default path for the <command>pkg-config</command>, so you may
|
|
Packit |
a43c12 |
need to set the PKG_CONFIG_DIR environment variable.
|
|
Packit |
a43c12 |
</para>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
</refsect1>
|
|
Packit |
a43c12 |
|
|
Packit |
a43c12 |
</refentry>
|