Solved Map based application (QSslSocket::connectToHostEncrypted)
-
hi, I would like to try to make an application based on a satellite map.
I searched among the examples of qt creator and found 3 of them:
MapViewer
minimal_map
places_mapbut if I try to execute them all they give me the same error:
initialize(482): ANGLE Display::initialize error 12289: No available renderers. initialize(482): ANGLE Display::initialize error 12289: No available renderers. initialize(482): ANGLE Display::initialize error 12289: No available renderers. create: Could not initialize EGL display: error 0x3001 create: When using ANGLE, check if d3dcompiler_4x.dll is available qrc:/mapviewer.qml:434:17: Unable to assign [undefined] to bool serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT. qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined qrc:/mapviewer.qml:434: ReferenceError: activeMapType is not defined QGeoTileProviderOsm: Tileserver disabled at QUrl("http://maps-redirect.qt.io/osm/5.8/satellite") QGeoTileFetcherOsm: all providers resolved qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
how can i solve? can anyone help me solve this problem or maybe have some other example that I can study?
Thanks in advance. -
Regarding your SSL errors you should check if the OpenSSL binaries are available on your system and if these are locateable by the application by using the PATH variable for instance. Note that I assumed that you're on Windows and Qt is configured to use OpenSSL.
-
Solved in this way:
- Download openssl-1.1.1c-win64-mingw.zip and unzip
- Add in .pro file:
LIBS += -LC:\Users\Federico\Downloads\openssl-1.1.1c-win64-mingw\openssl-1.1.1c-win64-mingw -llibcrypto-1_1-x64 LIBS += -LC:\Users\Federico\Downloads\openssl-1.1.1c-win64-mingw\openssl-1.1.1c-win64-mingw -llibssl-1_1-x64 INCLUDEPATH += C:\Users\Federico\Downloads\openssl-1.1.1c-win64-mingw\openssl-1.1.1c-win64-mingw\include
-
@federico.massimi said in Map based application (QSslSocket::connectToHostEncrypted):
Solved in this way
thank you for sharing, but don't forget to mark your post as solved as well.
-
I installed Openssl from this .msi installation and it fix the same issue for me: