Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved][Mac OS X] Additional plugins for Qt (qca plugins)
Forum Updated to NodeBB v4.3 + New Features

[solved][Mac OS X] Additional plugins for Qt (qca plugins)

Scheduled Pinned Locked Moved Installation and Deployment
11 Posts 2 Posters 11.5k Views 1 Watching
  • 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #2

    You could add

    @
    qDebug() << qApp->libraryPaths();
    @

    to your main.cpp. There you can see, where your app searches for plugin folders. Put your crypto folder in one of that.

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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maciej
      wrote on last edited by
      #3

      Thanks for your reply. It searches in /Developer/Application/Qt/plugins/. So it seems that it is problem with those .dylib files :/

      Earth is a beta site.

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

        I'll have a look into this later. Just need to finish my regular work ;-)

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

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

          Can you tell us what exactly you did to install these libs, please. I don't know how to set up a test case for this, sorry.

          The disk image only contains the dylibs. Where are the header files to include and the base QCA libs that are needed?

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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maciej
            wrote on last edited by
            #6

            So, I've installed Qt 4.7.1 and QtCreator 2.0.1 from dmg files. Then I've installed QCA framework "from source":http://delta.affinix.com/download/qca/2.0/qca-2.0.3.tar.bz2"
            @./configure
            make
            sudo make install@
            I've checked if it works. After downloading qca-plugins I've created directory crypto in /Developer/Application/Qt/plugins/ and copied all dylibs there.

            All header files are provided by qca, plugins provide only dylibs. For example these are contents of qca-ossl package installed on my Linux:
            @
            FILE LIST:
            ./
            usr/
            usr/doc/
            usr/doc/qca-ossl-2.0.0_beta3/
            usr/doc/qca-ossl-2.0.0_beta3/COPYING
            usr/doc/qca-ossl-2.0.0_beta3/TODO
            usr/doc/qca-ossl-2.0.0_beta3/README
            usr/lib64/
            usr/lib64/qt/
            usr/lib64/qt/plugins/
            usr/lib64/qt/plugins/crypto/
            usr/lib64/qt/plugins/crypto/libqca-ossl.so.debug
            usr/lib64/qt/plugins/crypto/libqca-ossl.so
            install/
            install/slack-desc
            @

            Example code:
            in .pro file you should add:
            @
            CONFIG += crypto
            @
            main.cpp
            @
            #include <QtCore/QCoreApplication>
            #include <QDebug>
            #include <QtCrypto>

            int main(int argc, char *argv[])
            {
            QCoreApplication a(argc, argv);
            QCA::Initializer init;
            qDebug() << QCA::supportedFeatures();
            return a.exec();
            }
            @

            Earth is a beta site.

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

              I'll give it a try tonight or tomorrow, stay tuned.

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

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

                I've tried it now. The pre built plugins cannot be loaded. I've tried to load them manually with "QPluginLoader":http://doc.qt.nokia.com/latest/qpluginloader.html, that fails too and states that the file libqca-logger.dylib is not a valid Qt plugin.

                From how I interpret QPluginLoader's docs, the plugins need to be recompiled with your current Qt version.

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

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  maciej
                  wrote on last edited by
                  #9

                  I've found out that plugins configure problems can be solved by recreating configure file. It was created by tool called "QConf.":http://delta.affinix.com/qconf/ Problem is that QConf also has corrupted configure (same problem). I've informed developers about this situation and I hope it'll be fixed soon. "Thread about faulty configure.":http://lists.affinix.com/htdig.cgi/delta-affinix.com/2010-September/001736.html

                  Earth is a beta site.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    maciej
                    wrote on last edited by
                    #10

                    I was adviced to try to run QConf's configure in that way:
                    @
                    QMAKESPEC=macx-g++ ./configure
                    @ If it does not work, version from svn should. Also new release of qca-ossl is planned soon, which should fix those issues.
                    I'll test it on Monday and update you with results.

                    Earth is a beta site.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      maciej
                      wrote on last edited by
                      #11

                      adding
                      @
                      QMAKESPEC=macx-g++ ./configure
                      @ for qca-ossl solved the issue. You don't have to use QConf (as I stated in my previous post).

                      Earth is a beta site.

                      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