Skip to the main content.

Did you know?

 

RTI is the world’s largest DDS supplier and Connext is the most trusted software framework for critical systems.

Success-Plan-Services-DSSuccess-Plan Services

Our Professional Services and Customer Success teams bring extensive experience to train, problem-solve, mentor, and accelerate customer success.

Learn more

Developers

From downloads to Hello World, we've got you covered. Find all of the tutorials, documentation, peer conversations and inspiration you need to get started using Connext today.

Try the Connectivity Selection Tool ⇢

Resources

RTI provides a broad range of technical and high-level resources designed to assist in understanding industry applications, the RTI Connext product line and its underlying data-centric technology.

Company

RTI is the infrastructure software company for smart-world systems. The company’s RTI Connext product is the world's leading software framework for intelligent distributed systems.

Contact Us

News & Events
Cooperation

2 min read

Hopping Down the Coding Trail: Unearthing a Cool Easter Egg in RTI Connext DDS Pro

Hopping Down the Coding Trail: Unearthing a Cool Easter Egg in RTI Connext DDS Pro

Software programs can sometimes contain an 'Easter Egg' -- some hidden feature that delights the finder by being fun, unexpected or useful. The Google search engine site has a few dozen, by way of example. Try searching the terms “askew” or “do a barrel roll,” which will produce some entertaining results. Funnily enough, we recently came face to face with an Easter Egg in one of RTI’s own products that we’d never heard about. 

A little backstory first: We had been asked to create a Connext DDS application that needed to be buildable on many different platforms -- Windows, Intel Linux, Raspberry Pi, etc. CMake seemed like a good choice to help get this going, as it's an open-source software tool that uses a compiler-independent approach, supports applications that depend on multiple libraries and, crucially, works across platforms.

We weren't wrong; CMake is indeed very powerful, and offers lots of intuitive ways to find libraries, set paths, select alternate file sets, and more. Though we'd used it on projects in the past, we realized early that the multi-host component of this task was going to take some research. So, we wanted to fast-track our way through that learning curve a little bit and become proficient at CMake in a hurry. We started to dig in…

Then we stumbled upon RTI's very own bit of buried treasure -- an Easter Egg that has in fact been shipping with Connext DDS Pro since version 5.3: A “CMake Helper” called FindRTIConnextDDS.cmake

FindRTIConnextDDS.cmake is a CMake script that helps CMake to find Connext and set the correct paths for libraries and include files, as well as set options and compiler definitions. It is similar to other third-party integrations done with other libraries or programs like OpenSSL or Python that came built in with the CMake installation. And it does all of that across lots of different host environments and build targets. It was surprisingly simple to use:

CMakeLists_txt_annotated

Within just a few minutes, we had a working multi-platform build creator for our Connext projects, tested on Windows, Linux and Raspberry Pi. An Easter Egg over easy, if we may mix our metaphors.

Getting the Goodies

If you have an installation of RTI Connext Pro (version 5.3 or later), the file is located at:

<NDDSHOME>/resource/cmake/FindRTIConnextDDS.cmake

Note that the capabilities of this file are being improved with every release of Connext; the most-recent version (with examples) can be downloaded from the RTI Community GitHub site at: https://github.com/rticommunity/rticonnextdds-examples/tree/master/examples/connext_dds/build_systems/cmake

Happy coding!

Neil and Israel

 

About the authors: 

Neil Puthuff-319883-editedNeil Puthuff is a Senior Software Integration Engineer for Real-Time Innovations (RTI). Neil graduated with a B.Sc. in Management and has been named inventor on 13 different US patents.

 

 

 

IMG_3801Israel Blancas is an Internal Tools Engineer at Real-Time Innovations (RTI). Israel graduated with a degree in Software Engineering from the University of Granada.