Using RTI DDS in Qt for Windows

3 posts / 0 new
Last post
Offline
Last seen: 1 year 10 months ago
Joined: 08/13/2014
Posts: 55
Using 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, it has some linker errors which I couldn't resolve by adding all the library files.

Has anybody used RTI DDS in C++ windows applications without Visual Studio?

 
Keywords:
gianpiero's picture
Offline
Last seen: 2 weeks 4 days ago
Joined: 06/02/2010
Posts: 176

Hello,

It shold work fine.. are you using the same compiler that the Visual Studio IDE would? I am not an expert with QT.. I am wondering if Qt is built using cygwin or something like that... 

Can you post the error log?

Best,
   Gianpiero

Offline
Last seen: 6 years 11 months ago
Joined: 09/16/2014
Posts: 1

I'm currently dealing with this same issue.  I built static libraries for my DDS functions using visual studio 2010 and then tried to link to them in QtCreator with no luck. QtCreator is set to also use Visual Studio 2010. Compiler output from QtCreator is copied below:

10:21:32: Running steps for project SimSynchQt...

10:21:32: Configuration unchanged, skipping qmake step.

10:21:32: Starting: "C:\Qt\Tools\QtCreator\bin\jom.exe"

C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release

cl -c -nologo -Zm200 -Zc:wchar_t -O2 -MD -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DNDEBUG -I"..\SimSynchQt" -I"..\SimSynchQt" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\advlog" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\cdr" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\clock" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\commend" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\core_version" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\dds_c" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\dds_cpp" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\disc" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\dl_driver" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\event" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\log" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\mig" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\netio" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\osapi" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\pres" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\reda" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\rtitls" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\rtixml" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\transport" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\transport_tcp" -I"..\..\..\Program Files\RTI\ndds.5.1.0\include\ndds\writer_history" -I"..\..\..\Program Files\RTI\ndds.5.1.0\lib\i86Win32VS2010" -I"..\..\..\Program Files\RTI\ndds.5.1.0\lib\i86Win32VS2010" -I"..\..\..\Program Files\RTI\ndds.5.1.0\lib\i86Win32VS2010" -I"..\..\..\Qt\5.3\msvc2010_opengl\include" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtQuick" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtQml" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtWidgets" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtNetwork" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtGui" -I"..\..\..\Qt\5.3\msvc2010_opengl\include\QtCore" -I"release" -I"." -I"..\..\..\Qt\5.3\msvc2010_opengl\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\GDEZAR~1\AppData\Local\Temp\simsync.obj.9560.78.jom

simsync.cpp

link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /MANIFEST /MANIFESTFILE:release\SimSynchQt.exe.embed.manifest /OUT:release\SimSynchQt.exe @C:\Users\GDEZAR~1\AppData\Local\Temp\SimSynchQt.exe.9560.2590.jom

simsync.obj : error LNK2019: unresolved external symbol "void __cdecl receiveSimSyncStatusData(struct OA_DDS_GBL_SimSync_Status *)" ([email protected]@[email protected]@@Z) referenced in function "public: void __thiscall SimSync::tick(void)" ([email protected]@@QAEXXZ)

nddscorez.lib(Environment.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiUtility_getUsername

nddscorez.lib(Guid.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(KeyHash.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Interpreter.obj) : error LNK2001: unresolved external symbol [email protected]

nddscz.lib(Guid.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _DDS_GUID_copy_to_pres_guid

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(VirtualWriterInfoList.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Generator.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(GeneratorContext.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Guid.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(KeyHash.obj) : error LNK2001: unresolved external symbol [email protected]

nddscz.lib(Guid.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _DDS_GUID_copy_from_pres_guid

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Thread.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiThread_getTss

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_ioctl

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6SocketFactory.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Thread.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Host.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket6.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_create

nddscorez.lib(Interpreter.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket6.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_create

nddscorez.lib(GeneratorContext.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiHost_getId

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6SocketFactory.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiHost_getId

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiHost_getId

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiHost_getHostName

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_send

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_receive_rEA

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

jom: C:\EclipseWorkspace\QtProjects\build-SimSynchQt-Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Release\Makefile.Release [release\SimSynchQt.exe] Error 1120

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_create_sendresource_srEA

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv4_SocketFactory_create_send_socket

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol _in6addr_loopback

nddscorez.lib(Udpv6.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv6_string_to_address_cEA

nddscorez.lib(Udpv6.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _NDDS_Transport_UDPv6_string_to_address_cEA

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocketModule_init

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocketModule_finalize

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_ioctl

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_getOption

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_setOption

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_bindWithIP

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_bindWithIP

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol [email protected]

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_getHostByName

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol _in6addr_any

nddscorez.lib(Interfaces.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSocket_getInterfaces

nddscorez.lib(sharedMemoryCommon.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSharedMemory_setSecurity

nddscorez.lib(sharedMemoryCommon.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function _RTIOsapiSharedMemory_setSecurity

release\SimSynchQt.exe : fatal error LNK1120: 38 unresolved externals

jom: C:\EclipseWorkspace\QtProjects\build-SimSynchQt-Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Release\Makefile [release] Error 2

10:21:41: The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.

Error while building/deploying project SimSynchQt (kit: Desktop Qt 5.3 MSVC2010 OpenGL 32bit)

When executing step 'Make'

10:21:41: Elapsed time: 00:10.