[SOLVED]How to use QCA (Qt Cryptographic Architecture)
-
wrote on 2 Aug 2011, 11:12 last edited by
Hello
I want to use QCA (At Cryptographic Architecture) for hashing and encryption. CMakeList I use in my project.
I installed the rpm qca.
In my. Cpp file where I put # include <QtCrypto> I have the following error message: "No such file"
How can use with qca CMakeList?
-
wrote on 2 Aug 2011, 11:27 last edited by
You have to add the correct include and library paths into your cmake project file(s). I'm not familiar with cmake, so you'll have to figure out the correct syntax yourself.
-
wrote on 2 Aug 2011, 11:38 last edited by
Can you give me the name of libraries or the name of the path where they are installed to find them??
I've seen these libraries
/lib/.libcrypto.so.1.0.0d.hmac
/lib/.libcrypto.so.10.hmac
/lib/libcrypto.so.1.0.0d
/lib/libcrypto.so.10
/lib/libk5crypto.so.3
/lib/libk5crypto.so.3.1Is there the right??
-
wrote on 2 Aug 2011, 11:41 last edited by
I don't know that. Look at the contents of the RPM to see where it is installed and how the files are named.
-
wrote on 2 Aug 2011, 11:42 last edited by
I've used a CMake project some time ago and found "this introduction ":http://www.cs.swarthmore.edu/~adanner/tips/cmake.php very usefull.
I think @target_link_libraries@ is what you need.
Please let us know how you used it if successfull ;)
-
wrote on 2 Aug 2011, 11:42 last edited by
I’ve seen these libraries
/lib/.libcrypto.so.1.0.0d.hmac
/lib/.libcrypto.so.10.hmac
/lib/libcrypto.so.1.0.0d
/lib/libcrypto.so.10
/lib/libk5crypto.so.3
/lib/libk5crypto.so.3.1Is there the right??
-
wrote on 2 Aug 2011, 11:58 last edited by
I've the solution. I'm able to use #include <QtCrypto/QtCrypto>.
What i do is to add in the directive INCLUDE_DIRECTORIES of my CMakeList the path /lib/ whitch contain the files above:
/lib/.libcrypto.so.1.0.0d.hmac
/lib/.libcrypto.so.10.hmac
/lib/libcrypto.so.1.0.0d
/lib/libcrypto.so.10
/lib/libk5crypto.so.3
/lib/libk5crypto.so.3.1Thanks for all
-
wrote on 2 Aug 2011, 12:01 last edited by
Well done!
thanks for sharing.
Could you edit your title and add[Solved] in front of it?
2/8