Building OPAL on Windows
Craig Southeren
Last updated 26 June 2006

Contents

           1. Introduction
           2. Prequisites
           3. Download and install the PWLib source code
           4. Configure directories
           5. Compiling
           5a. MSVC 6
           5b. VS.net 2003 and VS.net 2005
           5c. Configure search paths
Change history

1. Introduction

This document provides a thorough description of building OPAL using both MSVC 6 and VS.net 2003. These procedures are based on the procedures for building PWLib which must be completed before these steps can be performed.


2. Prerequisites

You will need the following to compile OPAL from source code:


3. Download and install the OPAL source code 

Download and extract the OPAL source code from the OpenH323 SourceForge download page or from CVS. If extracting the source from an archive, it is important to use program that can correctly handle tar.gz files can correctly process end of line characters. We strongly recommend WinZIP - other programs may not correct process end of line characters and will cause problems in later stages.

For the purposes of this document, the directory that contains OPAL will be indicated as installdir\OPAL


4. Configure directories 

Select "Tools" from the "Options" menu, and add the following directories settings as required

See this document for how to set directories for your particular environment 


5. Compiling 

Regardless of the environment you are using, there are a number of different projects that can be built. The basic OPAL library can be built in three different ways:

  1. Debug - full debug symbols and trace logging enabled. This provides the most information but is also generates the biggest output files
  2. Release - no debug symbols, but full trace logging. This is smaller than the Debug version, but still allows full trace output
  3. No Trace - no debug symbols, but and no trace logging. This creates the smallest output files, but does not allow trace logging
Name Description Debug version Release version No trace version
OPALLib OPAL as a static library OPALsd.lib OPALs.lib OPALsn.lib
OPALdll OPAL as a dynamic library OPALd.lib &
OPALd.lib
OPAL.lib &
OPAL.lib
OPALn.lib &
OPALn.lib

The static library versions of OPAL can be built independently, but building the OPAL DLLs requires building the "MERGESYM" utility from the Release version of PWLib. The codec DLLs do not require mergesym 

5a. MSVC 6

5b. VS.net 2003 and VS.net 2005

5c. Configure paths

If configure finds options in directories not belonging to other compilers, such as Cygwin,  MSys, or an incompatible Microsoft compiler, then please read the section 4.32 of the Opal/OpenH323 FAQ  on how to tailor the configure search path 


Change History

26 June 2006 Craig Southeren Added 5c on configure search paths and info on VS.net 2005
10 June 2004 Craig Southeren Initial version

Copyright © 2003-2007 by Post Increment A.B.N 95 856 785 279
All Rights Reserved
All trademarks and copyrights on this page are owned by their respective owners.