Linker error while adding Firebase SDK to QT project.
-
@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.
@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?
-
Hi,
ANDROID_EXTRA_LIBS
is for deploying additional libraries to the target. It has nothing to do with linking. Use theLIBS
variable to setup proper linking. -
Did you debug your app to see where and why it is crashing?
-
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) -
This looks like the crashes are not related to the Firebase. Check whether your app also crashes if you remove Firebase libs completely.
-
Why not using the Qt InterBase sql plugin instead trying to directly link to the firebird libs?
-
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.