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

Static build fails on Android platform

    XMLWordPrintable

Details

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

    Description

      JNI_OnLoad is causing duplicate symbols:

      ld: error: duplicate symbol: JNI_OnLoad
      >>> defined at qjnihelpers.cpp
      >>> qjnihelpers.cpp.o: (JNI_OnLoad) in archive qtbase/lib/libQt6Core_arm64-v8a.a
      >>> defined at androidjnimain.cpp
      >>> androidjnimain.cpp.o: (.text.JNI_OnLoad+0x0) in archive qtbase/plugins/platforms/libqtforandroid_arm64-v8a.a
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)

      Attachments

        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
              leroy Haoyu Liu
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes