onvif-qt-server-client
onvif-qt-server-client copied to clipboard
'SOL_TCP': undeclared identifier
Hi
I am trying to build the project on windows using qt. When i try to build the onviflib, i get the error onvif-qt-server-client-master\onviflibs\onvifcore\OnvifDiscoveryLib\soap\stdsoap2.cpp:5145: error: C2065: 'SOL_TCP': undeclared identifier
Can you please help me with fixing this.
Thanks
Hi, Even I am facing the same issue. Currently I am using Qt 5.7 and VS 2015 (64bit). I am unable to build OnvifLibs project. I am getting the below errors.
- soap\stdsoap2.cpp(5145): error C2065: 'SOL_TCP': undeclared identifier
- onvif-qt-server-client-master\onviflibs\onvifcore\OnvifDeviceLib\soap\onvifdeviceC.cpp :fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
Kindly please help me to resolve this error.
Thanks
@ra30 , @abhinav4ever ,how to compile this project?
you must patch both stdsoap2.c and stdsoap2.cpp to use IPPROTO_TCP instead of SOL_TCP. The reason for the change is that the code looks to see if TCP_FASTOPEN is defined, and, if so, it assumes that it's some sort of Linux-based stack that uses SOL_TCP instead of IPPROTO_TCP. Once TCP Fast Open (RFC 7413) was MFC'd to STABLE, TCP_FASTOPEN became defined so gsoap tried to use it with the wrong SOL_TCP definition.
#if !defined(SOL_TCP) && defined(IPPROTO_TCP) #define SOL_TCP IPPROTO_TCP #endif
Hi
I am trying to build the project on windows using qt Creator4.4.1. When i try to build the onviflib, i get the error: :-1: error: No rule to make target '../../../onviflibs/onvifcore/OnvifEventLib/soap/onvifeventPullPointSubscriptionBindingProxy.h', needed by 'debug/event.o'. Stop.
Can you please help me with fixing this.
Thanks