安卓 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.bitcoin_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.bitcoin_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 bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EVP_CipherFinal
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_ctrl
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve SSL_ctrl
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_get_builtin_curves
    W bitcoin-wallet-admin: (null):0 ((null)): qt.network.ssl: QSslSocket: cannot resolve EC_curve_nist2nid
    W bitcoin-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 谢谢分享哦,我吓得赶紧来膜拜一下,看看究竟是怎么回事。


Log in to reply
 

走马观花

最近的回复

  • Q

    幾乎沒有看到過,這究竟是什麼原因呢?
    有瞭解的同學可以來說一說。

    read more
  • 这里大概怎么做,然后值怎么传入![替代文字](73c989ff-abab-46e6-99e0-5173a40514b3-image.png 图片地址)例如上图的表格,表头怎么定义,然后表格的内容输入格式

    read more
  • @lsy 我没有在 QtLocation 成功实现高德地图的接入

    可以上 github 搜索用户 vladest,这个用户封装了国外大多数地图,可以参考这个去实现。

    read more
  • 自己顶顶有益健康

    read more

关注我们

微博
QQ群