The goal of this guide is help you download and compile OpenDDS and run a simple example.
Build Directions
  1. Ensure that your environment has:

    • a C++ compiler
    • GNU Make
    • Perl
    • Optional Java SDK 1.5 through 1.8 for Java JNI binding support

    See Building for a complete list of dependencies and supported platforms.

  2. Download and extract the latest tar.gz file from the download site
  3. Enter the OpenDDS-<version> directory
  4. ./configure (To enable Java bindings, use ./configure --java)
  5. make

See Support if you encounter problems with configuration or building.

Run the Messenger Example
  1. source setenv.sh
  2. cd DevGuideExamples/DCPS/Messenger for C++ example or cd java/tests/messenger for Java example
  3. ./run_test.pl

The Messenger Example starts an InfoRepo, publisher, and subscriber. The InfoRepo allows the publisher and subscriber to find each other. Once the publisher finds the subscriber, it sends 10 messages to the subscriber and waits 30 seconds for the subscriber to acknowledge the messages.

Note: The setenv.sh script sets various environment variables needed for running OpenDDS tests. Be sure to source setenv.sh if you start a new terminal session.

Next Steps

See Chapter 2 of the Developer's Guide for a detailed explanation of the Messenger C++ Example or Chapter 11 for the Java Example.