Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] QCA 2.0.3\ Qt4.8.6 mingw windows 7 strange runtime error

[Solved] QCA 2.0.3\ Qt4.8.6 mingw windows 7 strange runtime error

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 2.6k 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.
  • D Offline
    D Offline
    Dmitry A
    wrote on last edited by
    #1

    Hello
    I built qca 2.0.3 and qca-ossl-2.0.0-beta3.
    Here is output of QCA::supportedFeatures():

    ("random", "md5", "sha1", "keystorelist", "pgpkey", "openpgp", "sha0", "ripemd160", "md2", "md4", "sha224", "sha256", "sha384", "sha512", "hmac(md5)", "hmac(sha1)", "hmac(sha224)", "hmac(sha256)", "hmac(sha384)", "hmac(sha512)", "hmac(ripemd160)", "aes128-ecb", "aes128-cfb", "aes128-cbc", "aes128-cbc-pkcs7", "aes128-ofb", "aes192-ecb", "aes192-cfb", "aes192-cbc", "aes192-cbc-pkcs7", "aes192-ofb", "aes256-ecb", "aes256-cbc", "aes256-cbc-pkcs7", "aes256-cfb", "aes256-ofb", "blowfish-ecb", "blowfish-cbc-pkcs7", "blowfish-cbc", "blowfish-cfb", "blowfish-ofb", "tripledes-ecb", "tripledes-cbc", "des-ecb", "des-ecb-pkcs7", "des-cbc", "des-cbc-pkcs7", "des-cfb", "des-ofb", "cast5-ecb", "cast5-cbc", "cast5-cbc-pkcs7", "cast5-cfb", "cast5-ofb", "pbkdf1(md2)", "pbkdf1(sha1)", "pbkdf2(sha1)", "pkey", "dlgroup", "rsa", "dsa", "dh", "cert", "csr", "crl", "certcollection", "pkcs12", "tls", "cms", "ca")

    QCA::isSupported("openpgp") returns true

    But when I try to do something wth key app shows the following:
    QObject::connect: Cannot connect (null)::aboutToBlock() to QCA::TimerFixer::ed_aboutToBlock()
    QObject::connect: Cannot connect (null)::aboutToBlock() to QCA::TimerFixer::ed_aboutToBlock()
    QObject::connect: Cannot connect (null)::aboutToBlock() to QCA::TimerFixer::ed_aboutToBlock()
    QObject::connect: Cannot connect (null)::aboutToBlock() to QCA::TimerFixer::ed_aboutToBlock()
    QObject::startTimer: QTimer can only be used with threads started with QThread
    QEventLoop: Cannot be used without QApplication

    And just hangs.
    What's wrong?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dmitry A
      wrote on last edited by
      #2

      Does anyone knows how can I build qca correctly or where can I get working bunaries?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreyc
        wrote on last edited by
        #3

        Could you show the sources where you getting these errors.
        It looks like you have not started Qt event loop.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dmitry A
          wrote on last edited by
          #4

          @//Here main.cpp:

          #include <QApplication>
          #include <QtCrypto>
          #include "mainwindow.h"

          int main(int argc, char* argv[])
          {
          QCA::init();
          QApplication a(argc, argv);
          MainWindow w;
          w.show();
          return a.exec();
          }

          // MainWindow:

          MainWindow::MainWindow(QWidget *parent) :
          QMainWindow(parent),
          ui(new Ui::MainWindow)
          {
          ui->setupUi(this);
          setWindowFlags(Qt::WindowStaysOnTopHint);
          setAcceptDrops(true);
          // If I'll remove this string app will start
          QCA::PGPKey key("D:\work\20140715_Client_CF8EB0A_public.asc");
          }@

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dmitry A
            wrote on last edited by
            #5

            Thanks for everyone, I found the solution:
            I download PSI client from "here":http://delta.affinix.com/qca/ and checked compiler and Qt version. So Qt version is "Qt4.8.6 mingw32":http://qt-project.org/downloads and it built by mingw32 4.4.0 I download it with pathes, sorry I lost the link :-) After this I got binaries of QCA 2.0.0 from "here":http://delta.affinix.com/download/qca/2.0/ and it works.
            So it was runtime error

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              Thank you for sharing a solution.
              Could you please update the title of your post and put [SOLVED] at the front.

              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