
Originally Posted by
ChrisW67
You quite probably do not have SSL support for Qt because you have not installed/deployed OpenSSL libraries.
Hi Chris,
Thank you very much for your suggestion.
I am using Mac OS. So I try to follow this thread to solve my problem. (https://forum.qt.io/topic/55853/solv...l-and-mac-os-x)
Now, my openssl version is 1.0.2 which is up-to-date.
I also link to the ssl library by following code in my .pro file.
TEMPLATE = app
QT += qml quick widgets
SOURCES += main.cpp
RESOURCES += qml.qrc
LIBS += -L/usr/local/Cellar/openssl/1.0.2d_1/lib/ -lcrypto -lssl
INCLUDEPATH += /usr/local/Cellar/openssl/1.0.2d_1/include
DEPENDPATH += /usr/local/Cellar/openssl/1.0.2d_1/include
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
TEMPLATE = app
QT += qml quick widgets
SOURCES += main.cpp
RESOURCES += qml.qrc
LIBS += -L/usr/local/Cellar/openssl/1.0.2d_1/lib/ -lcrypto -lssl
INCLUDEPATH += /usr/local/Cellar/openssl/1.0.2d_1/include
DEPENDPATH += /usr/local/Cellar/openssl/1.0.2d_1/include
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
To copy to clipboard, switch view to plain text mode
I guess I must make some basic (stupid) mistake so I still get SSL warning when loading remote javascript from Google as below.
qt.network.ssl: QSslSocket: cannot resolve SSL_set_psk_client_callback
qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_client_method
qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_client_method
qt.network.ssl: QSslSocket: cannot resolve TLSv1_1_server_method
qt.network.ssl: QSslSocket: cannot resolve TLSv1_2_server_method
qt.network.ssl: QSslSocket: cannot resolve SSL_select_next_proto
qt.network.ssl: QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
qt.network.ssl: QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
QQmlApplicationEngine failed to load component
qrc:/main.qml:5 Script https://apis.google.com/js/client.js unavailable
https://apis.google.com/js/client.js:-1 Network error
Could you think of any possible mistake in my processor?
Best regards,
Clark
Bookmarks