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

Static build fails on Android platform

XMLWordPrintable

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

      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)

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

            qtandroidteam Qt Android Team
            leroy Haoyu Liu
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes