Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Linker error while adding Firebase SDK to QT project.
Forum Updated to NodeBB v4.3 + New Features

Linker error while adding Firebase SDK to QT project.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
17 Posts 5 Posters 904 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Vidya485

    I have included firebase libraries in android.pri

    image.png

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by
    #7

    @Vidya485 Do you think it is a good idea to add the same libraries from multiple architectures?

    1 Reply Last reply
    1
    • V Offline
      V Offline
      Vidya485
      wrote on last edited by
      #8

      @JonB, I am not sure about it, I am new to qt framework. I might be wrong but in qt5.15 I can see multi abi kit so I thought I might need to libraries from multiple architectures.

      jsulmJ 1 Reply Last reply
      0
      • V Vidya485

        @JonB, I am not sure about it, I am new to qt framework. I might be wrong but in qt5.15 I can see multi abi kit so I thought I might need to libraries from multiple architectures.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #9

        @Vidya485 Remove all other architectures except the one you're trying right now - does it work?
        How and where is ANDROID_EXTRA_LIBS used?
        You can also check the build logs to see whether the libs are actualy linked.

        And again: why do you post text as pictures?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #10

          Hi,

          ANDROID_EXTRA_LIBS is for deploying additional libraries to the target. It has nothing to do with linking. Use the LIBS variable to setup proper linking.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • V Offline
            V Offline
            Vidya485
            wrote on last edited by
            #11

            Thank you all for your quick response and help. All linker errors are gone now and I could build apk. But my app is crashing when I open it.

            Does qt5.15 supports latest firebase sdk i..e firebase_cpp_sdk_12.0.0 ?

            1 Reply Last reply
            0
            • jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #12

              Did you debug your app to see where and why it is crashing?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • V Offline
                V Offline
                Vidya485
                wrote on last edited by
                #13

                I tired app on two different android version

                on Android 14 error was

                AndroidRuntime: FATAL EXCEPTION: main
                06-19 09:39:59.417 24868 24868 E AndroidRuntime: Process: org.eshma.eshmagcs, PID: 24868
                06-19 09:39:59.417 24868 24868 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.eshma.eshmagcs/org.eshma.eshmagcs.QGCActivity}: java.lang.IllegalArgumentException: org.eshma.eshmagcs: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
                06-19 09:39:59.417 24868 24868 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

                On Android 8 error was

                ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.eshma.eshmagcs cmp=org.eshma.eshmagcs/.QGCActivity} from uid 10020
                06-19 21:28:39.946 1345 2512 I ActivityManager: Start proc 7951:org.eshma.eshmagcs/u0a90 for activity org.eshma.eshmagcs/.QGCActivity
                --------- beginning of crash
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: FATAL EXCEPTION: main
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: Process: org.eshma.eshmagcs, PID: 7951
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.eshma.eshmagcs/org.eshma.eshmagcs.QGCActivity}: java.lang.ClassNotFoundException: Didn't find class "org.eshma.eshmagcs.QGCActivity" on path: DexPathList[[zip file "/data/app/org.eshma.eshmagcs-P35fhwEYV0p61_KgFP-IRQ==/base.apk"],nativeLibraryDirectories=[/data/app/org.eshma.eshmagcs-P35fhwEYV0p61_KgFP-IRQ==/lib/arm64, /data/app/org.eshma.eshmagcs-P35fhwEYV0p61_KgFP-IRQ==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2682)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1592)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6518)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
                06-19 21:28:40.184 7951 7951 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  This looks like the crashes are not related to the Firebase. Check whether your app also crashes if you remove Firebase libs completely.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    Vidya485
                    wrote on last edited by
                    #15

                    App was working fine till I add firebase libs and made changes related to firebase like adding build.gradle and all.

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #16

                      Why not using the Qt InterBase sql plugin instead trying to directly link to the firebird libs?

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        Vidya485
                        wrote on last edited by
                        #17

                        I am new to Qt framework itself, what I am trying to achieve is

                        • I have have customized QGroundcontrol GCS https://github.com/mavlink/qgroundcontrol
                        • I want to add firebase support with- Google login
                        • Want to get drone live location on fleet management app ( which is using firebase) for which GCSs will be sending data to firebase.

                        I am not sure if Qt InterBase sql plugin will be able to achieve this.

                        Any guidance and help would be greatly appreciated.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved