cannot locate symbol "__emutls_get_address" - even with new Application
Solved
Mobile and Embedded
-
Hi,
I try to run my programs under Android.
Even a new project (File->New->QtQuick->Swipe) fails on the application output with the error message below.
What is my mistake?
BR SebastianE AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread E AndroidRuntime: Process: org.qtproject.example.Test, PID: 24242 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/org.qtproject.example.Test-Zths8CNnOaiVG9dAWdIz5A==/lib/arm64/libQt6Core_arm64-v8a.so"... E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:928) E AndroidRuntime: at java.lang.System.load(System.java:1633) E AndroidRuntime: at org.qtproject.qt.android.QtNative$2.run(QtNative.java:229) E AndroidRuntime: at org.qtproject.qt.android.QtThread$2.run(QtThread.java:51) E AndroidRuntime: at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25) E AndroidRuntime: at java.lang.Thread.run(Thread.java:764) "org.qtproject.example.Test" died.
I work on a Win10 machine, use Creator 4.14.1, Qt 6.5.1 and deploy to a Nokia 8 (TA-1012) with Android 9.
Settings: please see screenshots:
-
When you Googled about __emutls_get_address, you should have found:
https://doc.qt.io/qt-6/mobiledevelopment.html...Which advises about NDK version to use -- an unsuitable version is often the cause of the problem...
-
S SeDi has marked this topic as solved on