OpenVXIIf you have not already done so, download the OpenVXI distribution. To extract it on Microsoft Windows, use WinZip from WinZip Computing, Inc., or use the Cygwin or other distribution of GNU gzip and tar as follows. To extract it on Linux, use gzip and tar as follows, downloading and installing GNU gzip if required.
gzip –cd OpenVXI_2.0.tar.gz | tar xvf -
To run the pre-built Win32 binaries on Microsoft Windows NT or Microsoft Windows 2000, set an environment variable called VXISDK to the top-level directory of your OpenVXI distribution, then add %VXISDK%\bin to your Path environment variable so the DLLs and executables are automatically found. Next refer to the Configuration and Run Instructions.
Building the OpenVXI requires several pieces of external open software: the Apache Xerces C++ XML parser, the Mozilla SpiderMonkey C ECMAScript (JavaScript) engine, and the W3C Libwww HTTP library. These must be downloaded and built according to the documentation provided with those packages before building the OpenVXI.
Once this is complete, set the following environment variables so the OpenVXI build can locate the required headers and libraries:
Next follow the instructions below to build the OpenVXI.
Note: This procedure has been tested on Microsoft Windows NT 4.0 Service Pack 6a and Microsoft Windows 2000 Professional Service Pack 1 with Microsoft Visual C++ 6.0 Service Pack 3, 4, and 5.
The results of the build will go into src\Build\Release for the release binaries, and src\Build\Debug for the debug binaries. The debug binaries have a suffix of “D” prior to the extension to indicate they are “debug” versions, such as testClientD.exe. To run these binaries, move them into a directory in your binary search path (Path environment variable), or set your path to search these directories. Be careful to ensure %VXISDK%\bin appears in your Path after your newly built versions so that your versions get used at run-time. Do the same for the Xerces, SpiderMonkey, and Libwww binaries from your build. Then follow the Configuration and Run Instructions,.
Note: This procedure has been tested on Red Hat Linux 7.2 with GNU gmake 3.79.1 and GNU gcc 3.0.2. Unfortunately, we have experienced difficulty in attempts to use older versions.
Here is a walk through. Xerces, SpiderMonkey, libWWW, and OpenVXI were uncompressed and the environment prepared:
setenv VXIXERCESDIR /users/openvxi/xerces-c-src1_6_0
setenv VXISPIDERMONKEYDIR /users/openvxi/js
setenv VXILIBWWWDIR /users/openvxi/w3c-libwww-5.3.2
setenv VXISDK /users/openvxi/OpenVXI_2.0.1
setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH;$VXIXERCESDIR/lib;$VXISPIDERMONKEYDIR/src/Linux_All_OPT.OBJ;$VXILIBWWWDIR/Library/src/.libs;$VXILIBWWWDIR/modules/md5/.libs;$VXILIBWWWDIR/PICS-client/src/.libs"
Then the third party libraries were built. If you encounter any problems here, refer to the appropriate third party documentation.
cd $VXIXERCESDIR/src
setenv XERCESCROOT $VXIXERCESDIR
chmod 744 runConfigure
./runConfigure -plinux -cgcc -xg++ -minmem -nfileonly -tnative
gmake
cd $VXISPIDERMONKEYDIR/src
gmake -f Makefile.ref BUILD_OPT=1
cd $VXILIBWWWDIR
[Overlay the patches as discussed here]
./configure --without-expat
gmake
Finally, build OpenVXI:
cd $VXISDK/src
chmod 744 configure
./configure
gmake all
The results of the build will go into the various src subdirectories, with a static library for the component in each subdirectory and the final executable, testVXI, in the client subdirectory. To run these, set an environment variable called VXISDK to the top-level directory of your OpenVXI distribution. Then move testVXI and the Xerces and SpiderMonkey shared libraries into a directory in your executable and library search paths (PATH and LD_LIBRARY_PATH environment variables respectively), or set those environment variables to search these directories. Then follow the Configuration and Run Instructions.
Copyright (c) 2000-2002. SpeechWorks International, Inc. All rights reserved.
VoiceXML is a Trademark of the VoiceXML forum.