Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'SOL_TCP': undeclared identifier #2

Open
abhinav4ever opened this issue May 15, 2017 · 4 comments
Open

'SOL_TCP': undeclared identifier #2

abhinav4ever opened this issue May 15, 2017 · 4 comments

Comments

@abhinav4ever
Copy link

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

@ra30
Copy link

ra30 commented Aug 3, 2018

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

@gczhcm
Copy link

gczhcm commented Oct 23, 2018

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

@touchmii
Copy link

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

@Tailor-SC
Copy link

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:
👎 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants