onvif-qt-server-client icon indicating copy to clipboard operation
onvif-qt-server-client copied to clipboard

'SOL_TCP': undeclared identifier

Open abhinav4ever opened this issue 7 years ago • 4 comments

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

abhinav4ever avatar May 15 '17 17:05 abhinav4ever

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.

  1. soap\stdsoap2.cpp(5145): error C2065: 'SOL_TCP': undeclared identifier
  2. 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 avatar Aug 03 '18 04:08 ra30

@ra30 , @abhinav4ever ,how to compile this project?

gczhcm avatar Oct 23 '18 09:10 gczhcm

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

touchmii avatar Aug 28 '19 06:08 touchmii

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

Tailor-SC avatar Dec 02 '19 12:12 Tailor-SC