5 Steps to Creating an Evaluation Platform Using the RTI Field Build Kit
Written by Patrick "PK" Keliher
February 14, 2019
Antonio Garcia, a Senior Member of the Technical Staff at Wind River, approached me to ask about running our Connext® DDS Professional for a demonstration at the Future Airborne Capability Environment (FACE™) Technical Interchange Meeting (FACE TIM). The requirement for the demo platform was Wind River Linux 8 on a 64-bit Intel Architecture device. While RTI supports Wind River® Linux, specifically Wind River Linux 7, the next version of their operating system wasn’t yet validated. With the event only a month away, Wind River was faced with the possibility of not being able to build their demo in time.
Before solving the Wind River Linux 8 problem, a brief explanation of a Connext DDS Professional-validated platform is useful. There are three parameters that define a Platform: target CPU architecture, operating system and compiler.
Figure 1. The Three Legs of a Platform
Each platform’s filename specifies the three parameters for simplicity. Let’s look at a few of our evaluation platforms (available at https://www.rti.com/downloads):
This supports 32-bit Intel Architecture, running a Linux 2.6-based kernel, with gcc 4.4.5.
This supports 64-bit Intel Architecture, running a Linux 3-based kernel, with gcc 5.4.0.
This supports 64-bit Intel Architecture, running Windows 64-bit, with Visual Studio 2017.
The validation process for a new platform can be complex. Depending on what optional features and services are required, it might take several weeks. Fortunately for the FACE TIM demonstration, porting the new Wind River Linux 8 platform would leverage experience from previous Wind River Linux platform porting and validation efforts.
For evaluations and demonstrations, RTI maintains a CMake-based Field Build environment in a GitHub repository. An RTI Field Application Engineer will typically work with the customer to generate a field build for the desired evaluation platform. In this case, Wind River had the experience to create their Wind River Linux 8 platform on 64-bit Intel Architecture themselves. The skills necessary to use the Field Build kit are:
- Experience building and porting software
- Familiarity with Make, CMake, Premake or Autoconf
- Knowledge of the applicable compiler, compiler options and linker options
- Basic understanding of Connext DDS
The Field Build kit utilizes CMake to develop the Makefiles for the desired platform configuration. For those unfamiliar with CMake, the description from CMake.org is a great place to start.
CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform- and compiler-independent configuration files, and to generate native makefiles and workspaces that can be used in the compiler environment of your choice.
In addition to standard documentation, a useful site with an awesome name is The Hitchhiker’s Guide to the CMake. It is quite thorough and contains detailed information and tutorials.
Figure 2. CMake Flowchart
Using the Field Build kit, Wind River configured the CMake environment and successfully built the Wind River Linux 8 platform in just a few days. They developed a standalone detailed process document to facilitate any potential future Wind River operating system platform builds. Excerpts from the document are included inline below.
The Field Build GitHub repository contains a Readme file with the step-by-step instructions. The major steps are:
- Resolving Dependencies
- Configuring CMake
- Building Connext DDS
- Testing RTI Connext DDS
- Installing RTI Connext DDS
We’ll go through an overview of the instructions here, illustrated with the Wind River example.
1. Resolving Dependencies
Wind River has detailed steps to configure and build the operating system to include unixodbc.
Create a platform project that includes SDK support and internet download support.
Build the platform project:
On Linux you will have to install unixodbc-dev for Debian-based system like Ubuntu, or unixODBC and unixODBC-devel on Fedora-based distributions such as CentOS.
In a separate location, clone the meta-openembedded repository and copy the unixodbc recipe to your platform project:
Add the unixodbc package, then rebuild the file system and create the SDK:
make –C build unixodbc.addpkg
Install the SDK.
Once the SDK has completed installation, the next step will be cloning the RTI Connext DDS repository:
git clone https://github.com/rticommunity/rticonnextdds.git
2. Configuring CMake
The field build distribution of the Connext DDS source code includes a number of CMake scripts that can be used to generate build constructs, such as Makefiles or Visual Studio solutions.
To generate the build constructs in the working directory using the default settings for your environment run:
For many environments, configuring CMake is incredibly simple. For a standard Linux/gcc environment, all that is required is the path to gcc. Cross-compilation environments are also quite straightforward to configure.
The WR Linux 8 CMake configuration looks like this:
3. Building Connext DDS
Once you have generated the makefiles, solutions or projects via CMake, you can use them to build Connext DDS. If you created Makefiles for building Connext DDS, you can simply run make from the working directory. Likewise, if you created a Visual Studio solution, you can double-click on rticonnextdds.sln and build the libraries from Visual Studio C++.
Alternatively, you can use the cmake command to invoke the build scripts in an environment-independent way, by running the following command from the directory where the build constructs were generated:
cmake --build .
This build step is quite simple and is described in the Wind River process as follows:
Now, all that is left to do is build your libraries:
cmake -DCMAKE_TOOLCHAIN_FILE=wrlx8.cmake .
cmake --build .
The new build libraries will be located under build/lib/x64Linux.
4. Testing Connext DDS
This repository contains simple tests that perform a sanity check of the build. These tests provide very little code coverage and are not a valid substitute of unit tests and integration tests.
5. Installing Connext DDS
You can install the results of your build invoking make install or the INSTALL target of the generated Visual Studio solution. By default, the results of your copy will be installed under /usr/local on Unix and .
For completeness, the command is:
Using the RTI Field Build capability, Wind River was able to successfully build DDS libraries for their demo platform in just a few days ensuring their demo was ready in time for the FACE TIM. The lack of an already-validated platform for a desired configuration shouldn’t discourage anyone from choosing Connext DDS Professional for a demonstration or an evaluation. Customers and RTI partners can utilize the Field Build kit to quickly prove the value and use case, and then engage with RTI to add the configuration to our always-growing list of validated platforms.
For more information on FACE, we have a variety of information including a recent blog: https://www.rti.com/blog/connecting-the-pieces-integrating-face-conformant-portable-component-with-a-simulation-environment