PDA

View Full Version : QtCrypto problem



pucara_faa
7th December 2009, 23:53
Hi:
I'm beginning with an encryption application, and I'm using the "QtCrypto" library. I installed it, and everything seems to be working, until I include the library in the source file.
When I use #include <QtCrypto>, and then I compile, I get the following error:

QtCrypto: No such file or directory
And a lot of other errors caused by it. I included a new line in the .pro file with QT+=crypto, and still don't work.

Please, if someone can help me, I'll be really thanked.
Thanks in advanced.

ChrisW67
9th December 2009, 21:46
I'm not familiar with this particular library.

It does look like you need to put appropriate entries in your INCLUDEPATH so that the compiler can find the include file. You'll probably also need to play with LIBS so the linker can find the libraries. Something like this (for Qwt) could be adapted in your project.pro file;


QWTPATH = /usr/local/qwt-5.2.0
INCLUDEPATH += $$QWTPATH/include
LIBS += -L$$QWTPATH/lib -lqwt

jm
1st June 2010, 14:17
Hello,

I followed the above description and now I get more errors then before.

I added the following to my *.pro file:


QCAPATH = C:/Qt/qca-mingw-2.0.1
INCLUDEPATH += $$QCAPATH/include/QtCrypto
LIBS += -L$$QCAPATH/lib -lqca2


Now I get many compilation errors (see attachment).
Did I forget anything? A path variable, ...?
I have windows 7 (32 bit), mingw 5.1.6, eclipse, qt 4.6.2, qca mingw 2.0.1, qca ossl plugin 2.0.0 beta 3 and openssl 0.98n for windows.

When I try "qcatool2 plugins", I get following error message:
plugin: qca-ossl2.dll: failed to load. Cannot load library C:/Qt/4.6.2/plugins/crypto/qca-ossl2.dll
And I don't know why.

Has anyone an idea?
Thanks for your help.
jm