Intel 05-2505-001 VCR User Manual


 
Conferencing API Programming Guide — August 2006 31
Building Applications
Linux
In Linux, you must link the following library files in the order shown when compiling your
conferencing application:
libsrl.so
Standard Runtime Library file. Required in all applications. Specify
-lsrl in makefile.
libdxxx.so
the primary voice library file. Required only if the application uses voice library functions
directly; for example, dx_open( ). Specify
-ldxxx in makefile.
libdti.so
digital network interface library file. Required only if the application uses digital network
interface library functions directly; for example, dt_open( ). Specify
-ldti in makefile.
libgc.so
the primary Global Call library file. Required only if the application uses Global Call library
functions directly; for example, gc_GetResourceH( ). Specify
-lgc in makefile.
libipm.so
the primary IP media library file. Required only if the application uses IP media library
functions directly; for example, ipm_Open( ). Specify
-lipm in makefile.
libdevmgmt.so
device management library file. Required in a conferencing application. Specify
-ldevmgmt
in makefile.
libcnf.so
conferencing library file. Required in a conferencing application. Specify
-lcnf in makefile.
By default, the library files are located in the directory given by the INTEL_DIALOGIC_LIB
environment variable.
8.2 Variables for Compiling and Linking
The following variables provide a standardized way of referencing the directories that contain
header files and shared objects:
INTEL_DIALOGIC_INC
Variable that points to the directory where header files are stored.
INTEL_DIALOGIC_LIB
Variable that points to the directory where shared library files are stored.
These variables are automatically set at login and should be used in compiling and linking
commands. The following is an example of a compiling and linking command that uses these
variables:
cc -I${INTEL_DIALOGIC_INC} -o myapp myapp.c -L${INTEL_DIALOGIC_LIB} -lcnf -srl
Note: It is strongly recommended that you use these variables when compiling and linking applications.
The name of the variables will remain constant, but the values may change in future releases.