Using QCA Encrypt Library with Qt >5
-
Hi and welcome to devnet.
Which version of OpenSSL are you using to build QCA ?
-
Just to be sure, I would check against the latest version of the 1.0 series.
-
So, finally I build openSSL(1.1.1b) with minGW and got the corresponding headers.
At the QCA CMakeList there is the macro: "OPENSSL_INCLUDE_DIR" i've set the path and it's working.
But how can I link/set the Path to the openSSL lib?
Somehow it's not compiling qca-ossl.cpp because of the missing lib.best
-
@Hoehli said in Using QCA Encrypt Library with Qt >5:
SSL_SESSION_get_compress_id
Strange, that method is supposed to be available since 1.0.1...
Can you find it in the headers of your installed OpenSSL version ?
-
Might be a silly question, but are you sure you are linking to the right version of OpenSSL ?
You might be hitting a cmake cache entry.
-
@SGaist said in Using QCA Encrypt Library with Qt >5:
Might be a silly question, but are you sure you are linking to the right version of OpenSSL ?
Yes, think so :D. I included C:/openSSL32 for 32-bit, and C:/openSSL64 for 64-bit, that's the path I put my compiled openSSL.
To compile openSSL (version 1.0.2r) I used MSYS2 and followed this discription. The minGW compiler I used was the one, shipped with QT at: c:/Qt/Tools/mingw530_32 for 32-bit and C:/Qt/Tools/mingw730_64.
Configured the openSSL with the perl script with this options:
./Configure mingw shared no-idea no-mdc2 no-rc5 --prefix=/c/openSSL32
and for 64-bit:
./Configure mingw64 shared no-idea no-mdc2 no-rc5 --prefix=/c/openSSL64
Between those two steps I restarted MSYS2 and reconfigured the PATH variables to the corresponding minGW compiler.
I also tried the mingw-w64 compiler (he didn't made it).
You might be hitting a cmake cache entry.
32-bit version: https://pastebin.com/2VYa47f0
64-bit version: https://pastebin.com/4x0Sn5XmIf I'm comment the line 5810 (of qca-ossl.cpp - Version 2.1.3 of the QCA) out, the dll's are build and it's working (somehow but probably unstable).
Thanks for the support! I appreciate.Edit:
I had a deeper look into the CMakeCache files:
at the 64bit-version i changed the Value for LIB_EAY from C:\Program Files (x86)\Intel\iCLS Client\libeay32.dll, to C:\Program Files\Intel\iCLS Client\ssleay32.dll.This reduced the undefined reference errors, now I only get the same error as for the 32-bit version at line 5810.
YAY -> one step away :Dman, that's pain on windows... on Arch Linux QCA compiled "out of the box"...
Edit2:
tried the current master branch of openSSL (1.0.2s) still the same error. -
Rather than replacing the library, did you try link them both ?