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

Android: Using Qt as 3rd party library for a non Qt application

    XMLWordPrintable

Details

    • Android
    • Next

    Description

      When an Android library with Qt is used as a 3rd party library for a non Qt application, the app is not able to get a valid javaVM object and for Qt, that object is obtained when JNI_Onload() is called. This is usually called by the VM when loadLibrary() is called and that's been done in Qt when the app starts but in this case it is not happening which causes a crash when the library is trying to use the QtCore dependency.

      A solution of technical change and/or documentation should be provided how a Qt library should be implemented and deployed when used as a 3rd party library in a non Qt application.

      To reproduce, please use the attached example.  

      Attachments

        1. callstack.png
          callstack.png
          38 kB
        2. qtbug_111300.zip
          96 kB

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              tuomas.vaarala Tuomas Vaarala
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes