Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED]How to use QCA (Qt Cryptographic Architecture)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 10.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SamFaye
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      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.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SamFaye
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

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

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #5

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

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SamFaye
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SamFaye
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0
                • EddyE Offline
                  EddyE Offline
                  Eddy
                  wrote on last edited by
                  #8

                  Well done!

                  thanks for sharing.

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

                  Qt Certified Specialist
                  www.edalsolutions.be

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved