Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to find out runtime MinGW version and compile time OpenSSL (inside compile time Qt) version?

How to find out runtime MinGW version and compile time OpenSSL (inside compile time Qt) version?

Scheduled Pinned Locked Moved Installation and Deployment
mingwopensslwindows 10dynamic linkinggcc
5 Posts 2 Posters 4.6k Views
  • 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
    flart
    wrote on 30 Dec 2016, 12:58 last edited by flart
    #1

    QT_VERSION_STR — compile time Qt version,
    qVersion() — runtime Qt version,

    QSslSocket::sslLibraryBuildVersionString() — compiled version OpenSSL inside Qt runtime library. (runtime Qt5Core.dll, Qt5Network.dll were compiled with that version of OpenSSL)
    QSslSocket::sslLibraryVersionString() — runtime OpenSSL version

    __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ — compile time MinGW version

    How to find out true compile time version OpenSSL (compiled OpenSSL inside compiled time Qt) and runtime MinGW version ?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 1 Jan 2017, 11:47 last edited by Chris Kawa 1 Jan 2017, 11:48
      #2

      For OpenSSL OPENSSL_VERSION_NUMBER is probably what you're looking for, see here. Be aware that it only makes sense to use when you're in the OpenSSL library itself or in Qt's code that includes OpenSSL headers.

      As for the version of MinGW at runtime - which module do you mean? Each dll could potentially be compiled with different version. To get the version at runtime a compiler would need to inject a function that returns that version into each binary it produces and export it. I don't think it does that and I don't think people would like compiler injecting exported functions into their binaries.

      F 1 Reply Last reply 1 Jan 2017, 22:01
      1
      • C Chris Kawa
        1 Jan 2017, 11:47

        For OpenSSL OPENSSL_VERSION_NUMBER is probably what you're looking for, see here. Be aware that it only makes sense to use when you're in the OpenSSL library itself or in Qt's code that includes OpenSSL headers.

        As for the version of MinGW at runtime - which module do you mean? Each dll could potentially be compiled with different version. To get the version at runtime a compiler would need to inject a function that returns that version into each binary it produces and export it. I don't think it does that and I don't think people would like compiler injecting exported functions into their binaries.

        F Offline
        F Offline
        flart
        wrote on 1 Jan 2017, 22:01 last edited by
        #3

        @Chris-Kawa I mean libgcc_s_dw2-1.dll, libstdc++-6.dll and libwinpthread-1.dll

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 1 Jan 2017, 22:30 last edited by
          #4

          These are the C,C++ and threading runtime libraries. As far as I can see they don't export anything like that.

          Why do you need this actually? Usually when you deploy an app you deploy it with the runtime libraries you used to compile it.

          F 1 Reply Last reply 6 Jan 2017, 00:44
          4
          • C Chris Kawa
            1 Jan 2017, 22:30

            These are the C,C++ and threading runtime libraries. As far as I can see they don't export anything like that.

            Why do you need this actually? Usually when you deploy an app you deploy it with the runtime libraries you used to compile it.

            F Offline
            F Offline
            flart
            wrote on 6 Jan 2017, 00:44 last edited by flart 1 Jun 2017, 00:46
            #5

            @Chris-Kawa Sometimes you forget to update deploy dlls, in that case runtime vs compiletime versions in "about window" would be helpful.
            Even if you use auto windeployqt command, you'll still need to copy other dlls (OpenSSL, etc) by hand, there you'll forget.

            1 Reply Last reply
            0

            2/5

            1 Jan 2017, 11:47

            • Login

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