rapidonvif icon indicating copy to clipboard operation
rapidonvif copied to clipboard

Error while running code from ReadMe file

Open kmax91 opened this issue 8 years ago • 1 comments

Hi,

When I attempt to run the code from the ReadMe file, a lot of errors show up.

example: "EVP_CIPHER_CTX' does not name a type" "'EVP_CIPHER' does not name a type"

I have used only the "onvifclient.hpp" as the header file. Did I miss out on anything?

Thanks in advance!

kmax91 avatar Jun 06 '16 18:06 kmax91

have the same problem here.

cd 'E:\MyWorkspace\CameraStream' C:\MinGW\msys\1.0\bin\make.exe -f Makefile CONF=Debug "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make.exe[1]: Entering directory /e/MyWorkspace/CameraStream' "/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/camerastream.exe make.exe[2]: Entering directory /e/MyWorkspace/CameraStream' mkdir -p build/Debug/MinGW-Windows rm -f "build/Debug/MinGW-Windows/main.o.d" g++ -c -g -I/C/Program\ Files\ (x86)/GnuWin32/include -I/C/curl-7.37.0/include -MMD -MP -MF "build/Debug/MinGW-Windows/main.o.d" -o build/Debug/MinGW-Windows/main.o main.cpp In file included from wsseapi.h:56:0, from main.cpp:12: mecevp.h:144:3: error: 'EVP_CIPHER_CTX' does not name a type EVP_CIPHER_CTX *ctx; /< EVP_CIPHER_CTX context */ ^~~~~~~~~~~~~~ mecevp.h:145:9: error: 'EVP_CIPHER' does not name a type const EVP_CIPHER *type; /< type for OpenInit/DecryptInit */ ^~~~~~~~~~ mecevp.h:146:9: error: 'EVP_PKEY' does not name a type const EVP_PKEY *pkey; /< private key for OpenInit */ ^~~~~~~~ mecevp.h:147:22: error: 'EVP_MAX_KEY_LENGTH' was not declared in this scope unsigned char ekey[EVP_MAX_KEY_LENGTH];/< ephemeral key */ ^~~~~~~~~~~~~~~~~~ In file included from wsseapi.h:56:0, from main.cpp:12: mecevp.h:63:27: error: 'EVP_PKEY' has not been declared #define SOAP_MEC_KEY_TYPE EVP_PKEY ^ mecevp.h:63:27: note: in definition of macro 'SOAP_MEC_KEY_TYPE' #define SOAP_MEC_KEY_TYPE EVP_PKEY ^~~~~~~~ mecevp.h:63:27: error: 'EVP_PKEY' has not been declared #define SOAP_MEC_KEY_TYPE EVP_PKEY ^ mecevp.h:63:27: note: in definition of macro 'SOAP_MEC_KEY_TYPE' #define SOAP_MEC_KEY_TYPE EVP_PKEY ^~~~~~~~ mecevp.h:63:27: error: 'EVP_PKEY' has not been declared #define SOAP_MEC_KEY_TYPE EVP_PKEY ^ mecevp.h:63:27: note: in definition of macro 'SOAP_MEC_KEY_TYPE' #define SOAP_MEC_KEY_TYPE EVP_PKEY ^~~~~~~~ In file included from main.cpp:12:0: wsseapi.h:100:3: error: 'X509_STORE' does not name a type X509_STORE *store; ^~~~~~~~~~ In file included from wsseapi.h:55:0, from main.cpp:12: smdevp.h:67:27: error: 'EVP_MAX_MD_SIZE' was not declared in this scope #define SOAP_SMD_MAX_SIZE EVP_MAX_MD_SIZE ^ smdevp.h:67:27: note: in definition of macro 'SOAP_SMD_MAX_SIZE' #define SOAP_SMD_MAX_SIZE EVP_MAX_MD_SIZE ^~~~~~~~~~~~~~~ In file included from main.cpp:12:0: wsseapi.h:173:78: error: 'X509' has not been declared int soap_wsse_add_BinarySecurityTokenX509(struct soap *soap, const char *id, X509 *cert); ^~~~ wsseapi.h:177:1: error: 'X509' does not name a type X509 *soap_wsse_get_BinarySecurityTokenX509(struct soap *soap, const char *id); ^~~~ wsseapi.h:178:46: error: 'X509' has not been declared int soap_wsse_verify_X509(struct soap *soap, X509 *cert); ^~~~ In file included from wsseapi.h:55:0, from main.cpp:12: smdevp.h:67:27: error: 'EVP_MAX_MD_SIZE' was not declared in this scope #define SOAP_SMD_MAX_SIZE EVP_MAX_MD_SIZE ^ smdevp.h:67:27: note: in definition of macro 'SOAP_SMD_MAX_SIZE' #define SOAP_SMD_MAX_SIZE EVP_MAX_MD_SIZE ^~~~~~~~~~~~~~~ In file included from main.cpp:12:0: wsseapi.h:203:1: error: 'X509' does not name a type X509 *soap_wsse_get_KeyInfo_SecurityTokenReferenceX509(struct soap *soap); ^~~~ wsseapi.h:232:77: error: 'X509' has not been declared int soap_wsse_add_EncryptedKey(struct soap *soap, int alg, const char *URI, X509 *cert, const char *subjectkeyid, const char *issuer, const char *serial); ^~~~ wsseapi.h:233:90: error: 'X509' has not been declared int soap_wsse_add_EncryptedKey_encrypt_only(struct soap *soap, int alg, const char *URI, X509 *cert, const char *subjectkeyid, const char issuer, const char serial, const char tags); ^~~~ In file included from main.cpp:15:0: ErrorLog.h: In function 'void processEventLog(char, uint, FILE, const char, ...)': ErrorLog.h:20:25: error: 'localtime_r' was not declared in this scope localtime_r(&lTime, &tm); ^ ErrorLog.h:44:24: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] sLogBuffer[iStrLen+1]=NULL; ^~~~ make.exe[2]: *** [build/Debug/MinGW-Windows/main.o] Error 1 make.exe[2]: Leaving directory /e/MyWorkspace/CameraStream' make.exe[1]: *** [.build-conf] Error 2 make.exe[1]: Leaving directory /e/MyWorkspace/CameraStream' make.exe": *** [.build-impl] Error 2

ZihengSun avatar Nov 16 '17 14:11 ZihengSun