安卓 7.0 Qt 5.8 网络模块不能正常工作



  • 当发出网络请求时,就会闪退

    @jcy @MidoriYakumo

    日志如下:

    W linker  : library "libcrypto.so" ("/system/lib/libcrypto.so") needed or dlopened by "/data/app/org.qtproject.example.bitcoinworld_wallet_admin-1/lib/arm/libQt5Core.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
    W linker  : library "libssl.so" ("/system/lib/libssl.so") needed or dlopened by "/data/app/org.qtproject.example.bitcoinworld_wallet_admin-1/lib/arm/libQt5Core.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EVP_CipherFinal
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_ctrl
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_ctrl
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_get_builtin_curves
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_curve_nist2nid
    W bitcoinworld-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_conf
    F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 28125 (QtThread)
    

    类似帖子:

    qnetworkrequest-not-working-on-qt-5-8-and-android-7-0

    @jcy



  • 一些参考资料 opensslsupport



  • QWebSocket for Android闪退问题

    在windows上编译openssl供Android NDK使用

    注意,网络上提供的 so 文件请仔细辨别,必要时,请自行编译!

    编译好的 libcrypto.solibssl.so 下载:QWebSocket-for-Android-openssl库

    @jcy @MidoriYakumo



  • @qyvlik 不清楚,因为我现在只有Android 4.4.4的设备,还没有Android 7.0的设备哦。这种手机太新了。





  • @qyvlik 谢谢分享哦,我吓得赶紧来膜拜一下,看看究竟是怎么回事。


 

最近的回复

  • 这次在QWidget里面嵌入了qml,正好赶上七夕,就制作了这个小程序。
    随着七夕临近,牛郎和织女会相遇!

    0_1534381046875_163cc660-5a5e-46d1-ac5e-0414a2252644-image.png

    源代码

    Fork me on Gitee

    加了特效的桌面

    0_1534402386328_20180816_144729 (2).gif

    阅读更多
  • @jiangcaiyang 有源代码哦

    阅读更多
  • 很棒!求软件,我要摆在我的桌面上。

    阅读更多

关注我们

微博
QQ群











召唤伊斯特瓦尔