QCA - RSA not supported on Windows without Qt
-
I can run my project without any issues on my pc, rsa works well, it's working also outside Qt with required dll's.
I tried to run my project on next pc without qt or openssl installed. I copied all required dll's, and .. RSA is not supported. I installed OpenSSL libraries on this pc like on mine, it changed nothing.
I added
qApp->addLibraryPath(qApp->applicationDirPath() + "/plugins");
Then i copied crypto directory to "plugins" - still rsa is not supported.
Current tree list of directory:³ app.exe
³ icudt52.dll
³ icuin52.dll
³ icuuc52.dll
³ libeay32.dll
³ libgcc_s_dw2-1.dll
³ libqca.dll
³ libssl32.dll
³ libstdc++-6.dll
³ libwinpthread-1.dll
³ Qt5Core.dll
³ Qt5Network.dll
³ ssleay32.dll
³ xd.txt
³
lib
³ libqca.dll.a
³
platforms
³ qminimal.dll
³ qoffscreen.dll
³ qwindows.dll
³
plugins
³ libqca.dll.a
³
crypto
libqca-gnupg.dll
libqca-logger.dll
libqca-ossl.dll
libqca-softstore.dllhttp://pastebin.com/eAeNedep - here's better view
What's wrong?
-
[quote author="qxoz" date="1406003460"]Hi. Welcome to DevNet.
What compiler do you use?
Try install vcredist.[/quote]Thanks, i'm using MinGW 4.8.2 with Qt 5.3.1. I installed vcredist (2008, 2010, 2012) - without effect.
On my own pc i have installed qca in qt directory, so i just adding CONFIG += crypto to get qca available in my project. -
I tried QCA::pluginDiagnosticTest, results are:
on my pc:
@"Checking Qt static plugins:
(none)
Checking Qt Library Path: D:/appa/Qt_5.3.1_MinGW_32bit_release_MFZ_Licen
se/release/plugins
libqca-gnupg.dll: (class: gnupgPlugin) loaded as qca-gnupg
libqca-logger.dll: (class: loggerPlugin) loaded as qca-logger
libqca-ossl.dll: (class: opensslPlugin) loaded as qca-ossl
libqca-softstore.dll: (class: softstorePlugin) loaded as qca-softstore
Checking Qt Library Path: D:/Qt/5.3/mingw482_32/plugins
(No 'crypto' subdirectory)
Checking Qt Library Path: D:/appa/Qt_5.3.1_MinGW_32bit_release_MFZ_Licen
se/release
(No 'crypto' subdirectory)
"@On another machine:
@"Checking Qt static plugins:
(none)
Checking Qt Library Path: C:/Users/Administrator/Desktop/appa/plugins
libqca-gnupg.dll: (class: gnupgPlugin) loaded as qca-gnupg
libqca-logger.dll: (class: loggerPlugin) loaded as qca-logger
libqca-ossl.dll: failed to load: Cannot load library C:/Users/Administrator/De
sktop/appa/plugins/crypto/libqca-ossl.dll:
libqca-softstore.dll: (class: softstorePlugin) loaded as qca-softstore
Checking Qt Library Path: C:/Users/Administrator/Desktop/appa
(No 'crypto' subdirectory)
"@Tried as administrator, on both machines they are same libs
-
Hi,
Have a look at the dll's with dependency walker to see if you're missing something.
Hope it helps
-
And probably "The Windows Deployment Tool (windeployqt)":http://qt-project.org/doc/qt-5/windows-deployment.html could help you.
-
The Windows Deployment Tool just copied same files like i have copied. Still not working on another machine.
@Found metadata in lib C:/Users/Administrator/Desktop/appa/plugins/
crypto/libqca-ossl.dll, metadata=
{
"IID": "com.affinix.qca.Plugin/1.0",
"MetaData": {
},
"className": "opensslPlugin",
"debug": false,
"version": 328449
}loaded library "C:/Users/Administrator/Desktop/appa/plugins/crypto
/libqca-ossl.dll"
QLibraryPrivate::loadPlugin failed on "C:/Users/Administrator/Desktop/appa/plugins/crypto/libqca-ossl.dll" : "Cannot load library C:/Users/Adminis
trator/Desktop/appa/plugins/crypto/libqca-ossl.dll: "@Is there any way to check/debug more information about loading plugin?