Building Orc and Applications That Use Orc

Building Orc and Applications that use Orc — How to build Orc and applications using it.

Building Orc on UNIX

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:


      ./configure
      make
      make install
    

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.

Future releases will have configure options that allow Orc to be compiled in a minimal configuration for embedded systems. This functionality is not yet available for general use.

Building Orc Applications

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.