DDS6 with qt

5 posts / 0 new
Last post
Offline
Last seen: 3 years 6 months ago
Joined: 03/16/2021
Posts: 2
DDS6 with qt

How latest version of dds can be connected with qt creator 4 or higher version working in linux platform .

Organization:
Howard's picture
Offline
Last seen: 2 days 6 hours ago
Joined: 11/29/2012
Posts: 603

Not sure what you're asking for exactly.  Fundamentally, RTI Connext DDS is just a library with a C/C++ API.  In your code, you would need to use #include to declare the APIs to the compiler.  Your compiler would need to be told where the RTI Connext DDS include files are via "-I<directory>".  You would have to make sure that you link the correct libraries required by an application using RTI Connext DDS.  And there are usually some "-D<macro>"s that you have to define on the compile line.

If you take any example makefile that builds an application that uses RTI Connext DDS, you should be able to extract this information and put it in the appropriate places in a QT Creator IDE project.  Example makefiles exist in the examples distributed and installed with RTI Connext DDS.

Platform (e.g., Linux) specific information about what libraries and macros are required can be found here: https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/manuals/connext_dds/RTI_ConnextDDS_CoreLibraries_PlatformNotes.html

But fundamentally, you have to do this yourself.  There are no premade QT Creator projects for including RTI Connext DDS.

Howard's picture
Offline
Last seen: 2 days 6 hours ago
Joined: 11/29/2012
Posts: 603

Oh, here's a blog on the QT website that discusses how to use DDS in a QT application.  Unfortunately, it doesn't discuss QT Creator directly.

https://www.qt.io/blog/2018/06/06/building-bridge-qt-dds

Offline
Last seen: 3 years 6 months ago
Joined: 03/16/2021
Posts: 2

Its an older one. I think this code connects DDS 5

 

Howard's picture
Offline
Last seen: 2 days 6 hours ago
Joined: 11/29/2012
Posts: 603

Connext DDS 5.x and Connext DDS 6.x aren't that much different...especially for what you need to do to use it with QT.