Using RTI DDS in Qt for Windows

3 posts / 0 new
Last post
Offline
Last seen: 4 years 8 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: 6 months 1 hour ago
Joined: 06/02/2010
Posts: 177

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: 9 years 9 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 *)" (?receiveSimSyncStatusData@@YAXPAUOA_DDS_GBL_SimSync_Status@@@Z) referenced in function "public: void __thiscall SimSync::tick(void)" (?tick@SimSync@@QAEXXZ)

nddscorez.lib(Environment.obj) : error LNK2019: unresolved external symbol __imp__GetUserNameA@8 referenced in function _RTIOsapiUtility_getUsername

nddscorez.lib(Guid.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscorez.lib(KeyHash.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscorez.lib(Interpreter.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscz.lib(Guid.obj) : error LNK2019: unresolved external symbol __imp__ntohl@4 referenced in function _DDS_GUID_copy_to_pres_guid

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscorez.lib(VirtualWriterInfoList.obj) : error LNK2001: unresolved external symbol __imp__ntohl@4

nddscorez.lib(Generator.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(GeneratorContext.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(Guid.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(KeyHash.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscz.lib(Guid.obj) : error LNK2019: unresolved external symbol __imp__htonl@4 referenced in function _DDS_GUID_copy_from_pres_guid

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(Common.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol __imp__htonl@4

nddscorez.lib(Thread.obj) : error LNK2019: unresolved external symbol __imp__WSASetLastError@4 referenced in function _RTIOsapiThread_getTss

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__WSASetLastError@4

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__WSASetLastError@4

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__WSAGetLastError@0 referenced in function _RTIOsapiSocket_ioctl

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Udpv6SocketFactory.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Thread.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Host.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0

nddscorez.lib(Socket6.obj) : error LNK2019: unresolved external symbol __imp__ntohs@4 referenced in function _RTIOsapiSocket_create

nddscorez.lib(Interpreter.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__ntohs@4

nddscorez.lib(Socket6.obj) : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function _RTIOsapiSocket_create

nddscorez.lib(GeneratorContext.obj) : error LNK2001: unresolved external symbol __imp__htons@4

nddscorez.lib(NtoHl.obj) : error LNK2001: unresolved external symbol __imp__htons@4

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__htons@4

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol __imp__htons@4

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__htons@4

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function _RTIOsapiHost_getId

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4

nddscorez.lib(Udpv6SocketFactory.obj) : error LNK2001: unresolved external symbol __imp__closesocket@4

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol __imp__WSAIoctl@36 referenced in function _RTIOsapiHost_getId

nddscorez.lib(Udpv4.obj) : error LNK2001: unresolved external symbol __imp__WSAIoctl@36

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__WSAIoctl@36

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function _RTIOsapiHost_getId

nddscorez.lib(Host.obj) : error LNK2019: unresolved external symbol __imp__gethostname@8 referenced in function _RTIOsapiHost_getHostName

nddscorez.lib(Udpv6.obj) : error LNK2001: unresolved external symbol __imp__gethostname@8

nddscorez.lib(Socket.obj) : error LNK2001: unresolved external symbol __imp__gethostname@8

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__WSASendTo@36 referenced in function _NDDS_Transport_UDPv4_send

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__WSASendTo@36

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__WSARecvFrom@36 referenced in function _NDDS_Transport_UDPv4_receive_rEA

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__WSARecvFrom@36

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 __imp__sendto@24 referenced in function _NDDS_Transport_UDPv4_create_sendresource_srEA

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__RegEnumKeyExA@32 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__RegQueryInfoKeyA@48 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _NDDS_Transport_UDPv4_query_interfaces

nddscorez.lib(Udpv4.obj) : error LNK2019: unresolved external symbol __imp__WSASocketA@24 referenced in function _NDDS_Transport_UDPv4_SocketFactory_create_send_socket

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__WSASocketA@24

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

nddscorez.lib(Udpv6.obj) : error LNK2019: unresolved external symbol __imp__getaddrinfo@16 referenced in function _NDDS_Transport_UDPv6_string_to_address_cEA

nddscorez.lib(Udpv6.obj) : error LNK2019: unresolved external symbol __imp__freeaddrinfo@4 referenced in function _NDDS_Transport_UDPv6_string_to_address_cEA

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _RTIOsapiSocketModule_init

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function _RTIOsapiSocketModule_finalize

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__ioctlsocket@12 referenced in function _RTIOsapiSocket_ioctl

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__getsockopt@20 referenced in function _RTIOsapiSocket_getOption

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__getsockopt@20

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__setsockopt@20 referenced in function _RTIOsapiSocket_setOption

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__setsockopt@20

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__getsockname@12 referenced in function _RTIOsapiSocket_bindWithIP

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__getsockname@12

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function _RTIOsapiSocket_bindWithIP

nddscorez.lib(Socket6.obj) : error LNK2001: unresolved external symbol __imp__bind@12

nddscorez.lib(Socket.obj) : error LNK2019: unresolved external symbol __imp__gethostbyname@4 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 __imp__getnameinfo@28 referenced in function _RTIOsapiSocket_getInterfaces

nddscorez.lib(sharedMemoryCommon.obj) : error LNK2019: unresolved external symbol __imp__SetSecurityDescriptorDacl@16 referenced in function _RTIOsapiSharedMemory_setSecurity

nddscorez.lib(sharedMemoryCommon.obj) : error LNK2019: unresolved external symbol __imp__InitializeSecurityDescriptor@8 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.