Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36097

Static Qt for Android mustn't implement JNI_OnLoad

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.0
    • QPA
    • None
    • Android

    Description

      qsslsocket_openssl_android.cpp contains a definition on JNI_OnLoad function. When Qt is build as a static library and is linked to a binary that already contains a definition of JNI_OnLoad, the linker returns "multiple definitions" error.

      If Qt does really need to define this function, then it should provide a way for a client code to handle JNI_OnLoad somehow.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tvete Paul Olav Tvete
              michael.rozumyanskiy@gmail.com Michael Rozumyanskiy
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes