How to use RTI DDS in Qt for Windows?

3 posts / 0 new
Last post
Offline
Last seen: 5 years 8 months ago
Joined: 07/15/2018
Posts: 2
How to use RTI DDS in Qt for Windows?

   I am developing a C++ windows application with Qt and I want to know if it's possible to use RTI DDS in Qt for windows.I have used RTI DDS in visual studio with no problem,but in Qt,how should I modify the .pro file to make rti DDS run successfully?

Keywords:
Offline
Last seen: 5 years 9 months ago
Joined: 07/16/2018
Posts: 1

I extracted a few things from a *.pro file that uses RTI with Win32. Perhaps that will help you get started.

win32 {
DEFINES += NDDS_DLL_VARIABLE
DEFINES += RTI_WIN32
DEFINES += _WINSOCKAPI_
DEFINES += SHARED_LIBRARY
}

INCLUDEPATH += $(NDDS_INC)
INCLUDEPATH += $(NDDS_INC)/ndds

win32 {
LIBS += -l$$qtLibraryTarget(nddsc)
LIBS += -l$$qtLibraryTarget(nddscore)
LIBS += -l$$qtLibraryTarget(nddscpp)
}

-- Fuzzy

Offline
Last seen: 5 years 8 months ago
Joined: 07/15/2018
Posts: 2

Thanks for your answering,it really helps me a lot.However,when I compile the project after adding those to my project ,the Qt shows some error message,like the pircture below.it seems something wrong in the file of log_dll.h.Could you please help me to solve the problem again?thanks a lot!

File Attachments: