我正在尝试用qt为android创建arcore应用程序。
我能够运行arcore示例(hello\u ar\u java,hello\u ar\u c)和qt示例(jnimessenger)。但两者结合在一起,它崩溃了。
我从一个qt-jni-messenger示例开始。我补充道 build.gradle
从qt template dir(~/qt/5.15.0/android/src/android/templates/build.gradle)。然后我又加了一句 implementation 'com.google.ar:core:1.18.0'
至 dependencies
.
dependencies {
implementation 'com.google.ar:core:1.18.0'
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}
但这个错误使它崩溃了。
I le.jnimessenge: Late-enabling -Xcheck:jni
E le.jnimessenge: Unknown bits set in runtime_flags: 0x8000
W System : ClassLoader referenced unknown path:
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libc++_shared.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5Core_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5AndroidExtras_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5Gui_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5Network_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5Qml_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5QmlModels_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5Quick_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5QmlWorkerScript_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5QuickTemplates2_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libQt5QuickControls2_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libplugins_platforms_qtforandroid_armeabi-v7a.so'
I Qt JAVA : Can't find '/data/app/org.qtproject.example.jnimessenger-aiGQbBP6wlwSUCHGO1oUDA==/lib/arm64/libplugins_bearer_qandroidbearer_armeabi-v7a.so'
W System.err: java.lang.Exception:
W System.err: at org.qtproject.qt5.android.bindings.QtLoader.loadApplication(QtLoader.java:268)
W System.err: at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:505)
W System.err: at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:166)
W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
W System.err: at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
W System.err: at android.app.Activity.performCreate(Activity.java:7825)
W System.err: at android.app.Activity.performCreate(Activity.java:7814)
W System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
W System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
W System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
W System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
W System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
W System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
W System.err: at android.os.Handler.dispatchMessage(Handler.java:107)
W System.err: at android.os.Looper.loop(Looper.java:214)
W System.err: at android.app.ActivityThread.main(ActivityThread.java:7356)
W System.err: at java.lang.reflect.Method.invoke(Native Method)
W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I Adreno : QUALCOMM build : 4a00b69, I4e7e888065
I Adreno : Build Date : 04/09/19
I Adreno : OpenGL ES Shader Compiler Version: EV031.26.06.00
I Adreno : Local Branch :
I Adreno : Remote Branch :
I Adreno : Remote Branch :
I Adreno : Reconstruct Branch :
I Adreno : Build Config : S P 8.0.6 AArch64
I Adreno : PFP: 0x016ee183, ME: 0x00000000
W Gralloc3: mapper 3.x is not supported
我想知道为什么这种依赖性会破坏一开始工作的qt(我是android的初学者)
我做错什么了吗?有办法同时使用qt和arcore吗?
qt:5.15.0
qtcreator:4.12.0
arcore:1.18.0
安卓sdk:install from android studio 4.0.1
ndk:21.3.6528147
马科斯catalina:10.15.5
安卓device:pixel 3a 安卓10
谢谢你的帮助!
1条答案
按热度按时间vtwuwzda1#
我不懂逻辑,但我已经解决了问题。
我选择了arm64-v8a(项目>构建步骤>abis)