Installing OpenH323 under Linux

From Yate Documentation
Revision as of 15:41, 12 October 2012 by Dana (Talk | contribs)

Jump to: navigation, search

First of all, you will have to download the appropriate source packages for OpenH323 and PwLib from http://www.voxgratia.org/downloads.html.
Now, let’s see what steps are to be followed after unzipping the packages.

First you’ll have to install PwLib. We’ll not get into many details here. For doing a basic installation just run ./configure with --prefix=Pwlib folder option, make opt, and make install in the main PwLib folder. For other options consult the docs or run ./configure –help.

After this you’ll have to set the first from a number of three enviroment variables and namely PWLIBDIR to the install directory of PwLib.

If you do not desire to install OpenH323 in your home directory then you will have to make the OPENH323DIR environment variable to point to the install directory.

Another environment variable modification that you should make is to add the $OPENH323DIR/lib directory to LD_LIBRARY_PATH so you’re be able using the shared libraries.

Setting the enviroment variables is done through the command:

export variable=value # in sh variant shells

or

setenv variable value # in csh oriented shells

After these you will follow the steps that you should know by now first "./configure" with "--prefix=OpenH323 folder" option and after "make opt". You may encounter problems regarding your swap partition size. If you have problems just try letting the building finish without making something else. 64 megabytes of free space and the same amount of swap should be enough. If it isn’t, you’ll have to increase the swap space.

For installing Yate with Pwlib and OpenH323 the following options must be specified at the Yate configuration script as stated also in the Installing Yate chapter :

./configure --with-pwlib=Pwlib folder
./configure --with-pwlib=Pwlib folder --with-openh323=OpenH323 folder

After doing this you’ll find an executable called simph323 in a folder dependent on the platform (e.g. ./sample/simple /obj_linux_x86_r/simph323) . This will provide you the usage help text. That should be almost all about the installation of the OpenH323 library under Linux.

Unfortunately some problems may appear like the ones we will describe below.

When running "make" you may encounter a few messages starting with „Makefile” which will state that some dependency operators are missing. The solution is simple. Just use gmake instead of make. Another common problem is about compiling the bison.simple file which is unlikely to compile with the options provided by PwLib so some changes have to be made in the file you will usually find in /usr/lib/.

The code:

/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
int yyparse (void);
#endif

should be changed to

/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
#ifndef YYPARSE_PARAM
int yyparse (void);
#endif
#endif

This should solve your problem.

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers