BUILD REQUIREMENTS
==================

OpenMRCP depends on a number of third party tools and libraries, 
which must be installed prior to OpenMRCP build.

1. Apache Portable Runtime [1.2.x] (http://apr.apache.org/)
Whenever you want to build any part of OpenMRCP, you need the
Apache Portable Runtime (APR) and the APR Utility (APR-util)
libraries.

2. Sofia-SIP [>=1.12.6] (http://sofia-sip.sourceforge.net/)
If you want to build OpenMRCP with MRCPv2 support, you will
need Sofia-SIP library. Sofia-SIP is an open-source SIP User-Agent
library, compliant with the IETF RFC3261 specification.

3. Cepstral Swift (http://www.cepstral.com/)
If you want to build synthesizer plug-in for OpenMRCP server, you 
will need Cepstral Swift SDK. Cepstral Swift is commercial TTS engine.


BUILDING UNDER UNIX
===================

Additional requirements
- autoconf 2.50 or newer
- libtool 1.4 or newer

Build
$ ./bootstrap
$ ./configure
$ make
$ make install

There are a couple of options to "./configure".
You can use the "--with-apr=" and "--with-apr-util=" options to
specify where to look for the APR and APR-util libraries. 
For example
$ ./configure --with-apr=/usr/local/apr \
              --with-apr-util=/usr/local/apr  ...

You can use the "--with-sofia-sip=" option to specify where to 
look for the Sofia-SIP library. 
For example
$ ./configure --with-sofia-sip=/usr/local/sofia-aip ...

You can use the "--with-swift=" option to specify where to 
look for the Cepstral Swift library. 
For example
$ ./configure --with-swift=/opt/swift ...


To generate doxygen documentation from the sources use
$ make dox

To build distribution tarball use
$ make dist


BUILDING UNDER WINDOWS
======================

Additional requirements
- Microsoft Visual Studio 2005

Build Preparation
It might be useful to adjust the paths for 3-rd party libraries
in appropriate property sheets to match your local installation,
while below are the defaults (build/win32).

apr.vsprops
	<UserMacro
		Name="AprDir"
		Value="$(SolutionDir)\libs\apr"
	/>
	<UserMacro
		Name="AprUtilDir"
		Value="$(SolutionDir)\libs\apr-util"
	/>
	
sofiasip.vsprops
	<UserMacro
		Name="SofiaDir"
		Value="$(SolutionDir)\libs\sofia-sip"
	/>

cepstral.vsprops [optional]
    <UserMacro
		Name="Swift"
		Value="C:\Program Files\Cepstral\sdk"
	/>
	


Build
Open OpenMRCP.sln and build it.
