Tuscany - Getting Started - SDO C++ Milestone release 1
Tuscany SDO C++ is an implementation of the Service Data Objects 2.0 specification for C++ developers.
This page describes what is needed to install Tuscany SDO for C++.
If you haven't already done so, the first
step is to download the SDO C++ Milestone release 1 of Apache Tuscany from our
download page.
System Requirements
In order to use Tuscany SDO there are some minimum requirements:
Software |
Download Link |
Operating systems:
|
|
Axis2C Release 0.92 |
http://ws.apache.org/axis2/c/download.cgi
Please download and follow the installation instructions. Ensure you can run the Axis2C samples
|
libxml2 version 2.6.20 |
http://xmlsoft.org/downloads.html
Most Linux systems have libxml2 by default. On Windows you need to download and install libxml2 from http://www.zlatkovic.com/libxml.en.html
Please read the installation notes for libxml2 particularly regarding it's pre-req's iconv and zlib on Windows.
These libraries will need to be on the PATH in order to run Tuscany SDO.
|
Installing Tuscany SDO for C++
Getting Tuscany SDO for C++ working with the binary release on Linux
- Extract the binary tar package to a folder
- Add the *install_dir*/lib directory to the LD_LIBRARY_PATH environment variable
Getting Tuscany SDO for C++ working with the source release on Linux
- Extract the source tar package to a folder <tuscany_sdo>
- The following environment variables are required:
- LIBXML2_INCLUDE=<path to libxml2 includes>
- LIBXML2_LIB=<path to libxml2 lib>
Note: If you are using the default installation of libxml2 these are usually:
LIBXML2_LIB=/usr/lib
LIBXML2_INCLUDE=/usr/include/libxml2
- AXIS2C_HOME=<path to axis2c version 0.92>
- Build the source with the following command sequence:
- ./configure
- make
- make install
NOTE: If you don't provide a --prefix configure option, it will by default install into
/usr/local/tuscany/sdo
- Run the test:
- cd to <tuscany_sdo>/runtime/core/test
- ./tuscany_sdo_test
Getting Tuscany SDO for C++ working with the binary release on Windows
- Unzip the supplied zip file to a folder
- Add the *install_dir*\bin directory to the PATH environment variable
Getting Tuscany SDO for C++ working with the source release on Windows
- Unzip the supplied source zip file
- The following environment variables are required:
- LIBXML2_HOME=<path to installed libxml2>
- AXIS2C_HOME=<path to axis2c version 0.92>
- You must have set up the environment for Microsoft Visual C++ tools. The build command
will call vcvars32 to set the environment. Ensure the directory containing this is on your path.
This will be where you installed the compiler.
- Build the source:
- cd <to where you unzipped the source>
- build
This will build all the projects and put the required output into the 'deploy' directory
Alternatively, open the workspace tuscany_sdo.dsw in Visual Studio 6 - you can build projects individually
or build the test project to build all its dependencies. Running the test project should give a list of
tests passed - this is currently 108 tests, no failures.
- Add the 'deploy'\bin directory PATH environment variable
Samples
SDO Technology samples
|
Simple samples that emphasize how to to use SDO technology. Follow the
instructions on the samples Getting Started
page to build and run the Tuscany SDO samples
|