tags:

views:

360

answers:

3

hi all I need to use some cryptography algorithms in my symbian QT project. But I could not compile QCA for my symbian environment.

1-How I can links my libcrypto.lib which is openssl static library for symbian to my QT application?I cannot find any place for configuring my QT application to accept this library.

2-Is it possible to compile QCA for symbian?if yea,how?

Regards

+4  A: 

You can link against libcrypto.lib this way in your .pro file:

symbian: {
  LIBS += -llibcrypto
}
laalto
A: 

You will have to make code changes to QCA in order to make it compile for Symbian. So, while it is possible, you'll need to spend some time to make it work, it just won't work out of the box (as you've discovered).

Since you haven't specified exactly what it is that you need in terms of cryptographic functions, there is the QCryptographicHash class which provides MD4, MD5, and SHA1 hash generation.

Otherwise, you're stuck with openssl, which you can use laalto's answer for linking with libcrypto.lib

Matt Rogers
A: 

Thank a LOT!!! it worked... :) I was using LIBS incorrectly.

Hero
You may want to use the "Add Comment" feature for comments like this instead of posting a new answer. And if you feel that an answer is correct, please mark it as accepted by clicking on the checkmark icon - that'll keep the rep flowing.
laalto