Skip to content
Snippets Groups Projects
Commit acf83439 authored by Dmitry Petrov's avatar Dmitry Petrov
Browse files

qtbase: link against libssl at compile-time

When openssl functions are called from qt, the following errors appears:

qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id
qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate

This is a known issue for "meta-qt5" layer:
https://github.com/meta-qt5/meta-qt5/issues/437

The solution is to force libQt5Network.so to link against openssl library at
compile-time by providing "-openssl-linked" option.
https://doc.qt.io/qt-5/ssl.html#enabling-and-disabling-ssl-support



The qtbase recipe has a special variable "OPENSSL_LINKING_MODE" that allows to
choose whether to link to OpenSSL library at linking time or run time.

Signed-off-by: default avatarDmitry Petrov <dmitry.petrov@rtsoft.de>
parent 576093ce
No related branches found
No related tags found
1 merge request!590qtbase: link against libssl at compile-time
......@@ -2,6 +2,9 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://0001-QStylesheetStyle-fix-push-button-label-alignment.patch"
# Use link in openssl since we are using OpenSSL 3.0.x
OPENSSL_LINKING_MODE = "-linked"
PACKAGECONFIG_DISTRO:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gbm gles2 kms eglfs', 'no-opengl', d)} "
PACKAGECONFIG_DISTRO:remove = " ${@bb.utils.contains('MACHINE', 'seco-mx6-fsl', 'gbm', '', d)} "
PACKAGECONFIG_DISTRO:append = " linuxfb "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment