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. QCA - RSA not supported on Windows without Qt
QtWS25 Last Chance

QCA - RSA not supported on Windows without Qt

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 3 Posters 3.6k 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.
  • T Offline
    T Offline
    TheQuake
    wrote on last edited by
    #1

    I can run my project without any issues on my pc, rsa works well, it's working also outside Qt with required dll's.
    I tried to run my project on next pc without qt or openssl installed. I copied all required dll's, and .. RSA is not supported. I installed OpenSSL libraries on this pc like on mine, it changed nothing.
    I added
    qApp->addLibraryPath(qApp->applicationDirPath() + "/plugins");
    Then i copied crypto directory to "plugins" - still rsa is not supported.
    Current tree list of directory:

    ³ app.exe
    ³ icudt52.dll
    ³ icuin52.dll
    ³ icuuc52.dll
    ³ libeay32.dll
    ³ libgcc_s_dw2-1.dll
    ³ libqca.dll
    ³ libssl32.dll
    ³ libstdc++-6.dll
    ³ libwinpthread-1.dll
    ³ Qt5Core.dll
    ³ Qt5Network.dll
    ³ ssleay32.dll
    ³ xd.txt
    ³
    lib
    ³ libqca.dll.a
    ³
    platforms
    ³ qminimal.dll
    ³ qoffscreen.dll
    ³ qwindows.dll
    ³
    plugins
    ³ libqca.dll.a
    ³
    crypto
    libqca-gnupg.dll
    libqca-logger.dll
    libqca-ossl.dll
    libqca-softstore.dll

    http://pastebin.com/eAeNedep - here's better view

    What's wrong?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi. Welcome to DevNet.
      What compiler do you use?
      Try install vcredist.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TheQuake
        wrote on last edited by
        #3

        [quote author="qxoz" date="1406003460"]Hi. Welcome to DevNet.
        What compiler do you use?
        Try install vcredist.[/quote]

        Thanks, i'm using MinGW 4.8.2 with Qt 5.3.1. I installed vcredist (2008, 2010, 2012) - without effect.
        On my own pc i have installed qca in qt directory, so i just adding CONFIG += crypto to get qca available in my project.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TheQuake
          wrote on last edited by
          #4

          I tried QCA::pluginDiagnosticTest, results are:
          on my pc:
          @"Checking Qt static plugins:
          (none)
          Checking Qt Library Path: D:/appa/Qt_5.3.1_MinGW_32bit_release_MFZ_Licen
          se/release/plugins
          libqca-gnupg.dll: (class: gnupgPlugin) loaded as qca-gnupg
          libqca-logger.dll: (class: loggerPlugin) loaded as qca-logger
          libqca-ossl.dll: (class: opensslPlugin) loaded as qca-ossl
          libqca-softstore.dll: (class: softstorePlugin) loaded as qca-softstore
          Checking Qt Library Path: D:/Qt/5.3/mingw482_32/plugins
          (No 'crypto' subdirectory)
          Checking Qt Library Path: D:/appa/Qt_5.3.1_MinGW_32bit_release_MFZ_Licen
          se/release
          (No 'crypto' subdirectory)
          "@

          On another machine:
          @"Checking Qt static plugins:
          (none)
          Checking Qt Library Path: C:/Users/Administrator/Desktop/appa/plugins
          libqca-gnupg.dll: (class: gnupgPlugin) loaded as qca-gnupg
          libqca-logger.dll: (class: loggerPlugin) loaded as qca-logger
          libqca-ossl.dll: failed to load: Cannot load library C:/Users/Administrator/De
          sktop/appa/plugins/crypto/libqca-ossl.dll:
          libqca-softstore.dll: (class: softstorePlugin) loaded as qca-softstore
          Checking Qt Library Path: C:/Users/Administrator/Desktop/appa
          (No 'crypto' subdirectory)
          "@

          Tried as administrator, on both machines they are same libs

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Have a look at the dll's with dependency walker to see if you're missing something.

            Hope it helps

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #6

              And probably "The Windows Deployment Tool (windeployqt)":http://qt-project.org/doc/qt-5/windows-deployment.html could help you.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TheQuake
                wrote on last edited by
                #7

                The Windows Deployment Tool just copied same files like i have copied. Still not working on another machine.

                @Found metadata in lib C:/Users/Administrator/Desktop/appa/plugins/
                crypto/libqca-ossl.dll, metadata=
                {
                "IID": "com.affinix.qca.Plugin/1.0",
                "MetaData": {
                },
                "className": "opensslPlugin",
                "debug": false,
                "version": 328449
                }

                loaded library "C:/Users/Administrator/Desktop/appa/plugins/crypto
                /libqca-ossl.dll"
                QLibraryPrivate::loadPlugin failed on "C:/Users/Administrator/Desktop/appa/plugins/crypto/libqca-ossl.dll" : "Cannot load library C:/Users/Adminis
                trator/Desktop/appa/plugins/crypto/libqca-ossl.dll: "@

                Is there any way to check/debug more information about loading plugin?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TheQuake
                  wrote on last edited by
                  #8

                  Uhm, the problem was other version of openssl on my pc and another.
                  Thanks all for answers :)

                  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