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

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

    XMLWordPrintable

Details

    • Android
    • 2023wkXXFOQtforAndroid

    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. qtbug_111300.zip
          96 kB
        2. callstack.png
          callstack.png
          38 kB

        Activity

          People

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

            Dates

              Created:
              Updated: