2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % version-entities SYSTEM "version.entities">
6 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
8 <refentry id="orc-building" revision="29 may 2009">
10 <refentrytitle>Building Orc and Applications That Use Orc</refentrytitle>
11 <manvolnum>3</manvolnum>
12 <refmiscinfo>Orc</refmiscinfo>
16 <refname>Building Orc and Applications that use Orc</refname>
18 How to build Orc and applications using it.
23 <title>Building Orc on UNIX</title>
25 <!-- this has been borrowed from the glib docs via gstreamer -->
27 On UNIX, Orc uses the standard GNU build system,
28 using <application>autoconf</application> for package
29 configuration and resolving portability issues,
30 <application>automake</application> for building makefiles
31 that comply with the GNU Coding Standards, and
32 <application>libtool</application> for building shared
33 libraries on multiple platforms. The normal sequence for
34 compiling and installing the Orc library is thus:
37 <userinput>./configure</userinput>
38 <userinput>make</userinput>
39 <userinput>make install</userinput>
44 The standard options provided by <application>GNU
45 autoconf</application> may be passed to the
46 <command>configure</command> script. Please see the
47 <application>autoconf</application> documentation or run
48 <command>./configure --help</command> for information about
53 By default, code generators for all targets are built into the
54 library. Embedded system developers may wish to use the
55 --enable-backed option, which will disable all other code
56 generators, saving about 200 kB in binary size. Outside of
57 embedded systems, using --enable-backend is not recommended.
63 <title>Building Orc Applications</title>
66 Applications and libraries can use <command>pkg-config</command> to get all the
67 needed compiler and linker flags to build against Orc. The following
68 commands will provide the necessary compiler and linker flags:
71 <userinput>pkg-config --cflags orc-&ORC_MAJORMINOR;</userinput>
72 <userinput>pkg-config --libs orc-&ORC_MAJORMINOR;</userinput>
77 When compiling from source, the default installation directory is not
78 in the default path for the <command>pkg-config</command>, so you may
79 need to set the PKG_CONFIG_DIR environment variable.