Building Orc and Applications That Use Orc
Building Orc and Applications that use Orc — How to build Orc and applications using it.
On UNIX, Orc uses the standard GNU build system, using autoconf for package configuration and resolving portability issues, automake for building makefiles that comply with the GNU Coding Standards, and libtool for building shared libraries on multiple platforms. The normal sequence for compiling and installing the Orc library is thus:
The standard options provided by GNU autoconf may be passed to the configure script. Please see the autoconf documentation or run ./configure --help for information about the standard options.
By default, code generators for all targets are built into the library. Embedded system developers may wish to use the --enable-backed option, which will disable all other code generators, saving about 200 kB in binary size. Outside of embedded systems, using --enable-backend is not recommended.
Applications and libraries can use pkg-config to get all the needed compiler and linker flags to build against Orc. The following commands will provide the necessary compiler and linker flags:
pkg-config --cflags orc-0.4
pkg-config --libs orc-0.4
When compiling from source, the default installation directory is not in the default path for the pkg-config, so you may need to set the PKG_CONFIG_DIR environment variable.