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?
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?
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
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!