Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED]How to use QCA (Qt Cryptographic Architecture)



  • 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?



  • 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.



  • 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.1

    Is there the right??



  • I don't know that. Look at the contents of the RPM to see where it is installed and how the files are named.



  • 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 ;)



  • 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.1

    Is there the right??



  • 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.1

    Thanks for all



  • Well done!

    thanks for sharing.

    Could you edit your title and add[Solved] in front of it?


Log in to reply