Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Map based application (QSslSocket::connectToHostEncrypted)
Forum Updated to NodeBB v4.3 + New Features

Map based application (QSslSocket::connectToHostEncrypted)

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    federico.massimi
    wrote on last edited by
    #1

    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_map

    but 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.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bludger
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      3
      • F Offline
        F Offline
        federico.massimi
        wrote on last edited by
        #3

        Solved in this way:

        1. Download openssl-1.1.1c-win64-mingw.zip and unzip
        2. 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
        
        Pablo J. RoginaP 1 Reply Last reply
        1
        • F federico.massimi

          Solved in this way:

          1. Download openssl-1.1.1c-win64-mingw.zip and unzip
          2. 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
          
          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @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.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Manu Silver
            wrote on last edited by
            #5

            I installed Openssl from this .msi installation and it fix the same issue for me:

            http://slproweb.com/products/Win32OpenSSL.html

            1 Reply Last reply
            1

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved