无法在Qt5应用程序中加载qca-ossl [英] Cannot load qca-ossl in Qt5 application

查看:536
本文介绍了无法在Qt5应用程序中加载qca-ossl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我决定将我的应用程式从Qt4迁移到Qt5。使用Qt4我使用QCA与QCA-OSSL没有任何问题,但现在OSSL插件不想加载。

I have decided to migrate my application from Qt4 to Qt5. With Qt4 I used QCA with QCA-OSSL without any problem, but now OSSL plugin doesnt want to load.

我从git://anongit.kde编译QCA。 org / qca.git在Qt5与所有插件没有任何问题。比我添加QCA到我的应用程序(我使用CMAKE),它编译正确,但在运行期间将不允许AES密码,因为OSSL插件没有加载。

I have compiled QCA from git://anongit.kde.org/qca.git under Qt5 with all plugins without any problem. Than I added QCA to my application (I am using CMAKE), it compiled properly, but during run it won't allow AES cipher, because OSSL plugin was not loaded.

我通过论坛搜索,将libqca-ossl.so放入crypto目录,并将此目录复制到我的/ usr / lib / qt / plugins也到我的项目和构建目录,但它没有帮助。

I've searched through forums, put libqca-ossl.so into crypto directory, and copied this dir to my /usr/lib/qt/plugins also to my project and build directory but it did not help.

我会为任何帮助或建议。

I will be thanful for any help or suggestion.

推荐答案

整个问题是在这个...

1)CMake的git://anongit.kde.org/qca.git生成config-qca.h到QCA源目录。

2)在此文件中有#define QCA_PLUGIN_SUBDIRqca-qt5而不是预测的crypto

Ok I get it working the whole problem was in this...
1) CMake of git://anongit.kde.org/qca.git generates config-qca.h to a QCA source directory.
2) In this file there was #define QCA_PLUGIN_SUBDIR "qca-qt5" instead of predicted "crypto"

一个可能的解决方案是: br />
1)删除QCA中的lib目录(如果有来自先前配置的目录)

2)运行CMAKEARTO
3)更改qca-qt5 到crypto在config-qca.h

4)构建库

One possible solution is:
1) Delete lib dir in QCA (if there is one from previous configuration)
2) Run CMAKE
3) Change "qca-qt5" to "crypto" in config-qca.h
4) Build the library
5) Add library to your project and then it should load all plugins properly

这篇关于无法在Qt5应用程序中加载qca-ossl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆