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



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



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



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



  • @//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");
    }@



  • 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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.