2017-06-06 2 views
0

Ist es möglich, Qt 3D mit reinem C++ auf Android zu laufen? All C++ Beispiele, wie die Grundform C++ Beispiel bekamen diesen Eintrag in der .pro-Datei:Qt3D auf Android

android|ios|tvos|winrt { 
warning("This example is not supported for android, ios, tvos, or winrt.") 
} 

Ich schrieb eine Anwendung, die zum Beispiel sehr ähnlich ist, aber kleiner. Es ist nur ein Qt3DWindow mit einer Entity und einigen Komponenten. Es funktioniert auf meinem Laptop (Windows 8.1), aber es stürzt auf meinen AVDs ab.
Ich habe einige Nexus und Pixel AVDs mit APIs von 23 bis 25 mit Software und Hardware-Grafik-Rendering versucht.

Ich folgte this Leitfaden zum Einrichten QtCreator 2.3.0 und ich verwende Qt 5.9.0-X86-rc. Alle Android-Beispiele laufen gut.

Dies ist die Anwendung Ausgabe:

I Art: Nicht spät ermöglich -Xcheck: jni (bereits)
W System: Classloader referenziert unbekannten Weg:
I QtCore: Start
W linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Gui.so: unbenutzter DT-Eintrag: type 0x1d arg 0x53bd4
W Linker: /data/app/org.qtproject.example-2/lib /x86/libQt5Gui.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W Linker: /data/app/org.qtproject.exa mple-2/lib/x86/libQt5Network.so: unbenutzter DT-Eintrag: type 0x1d arg 0x13595
W Linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Network.so: nicht unterstützte Flags DT_FLAGS_1 =
0x81 W-Linker: /data/app/org.qtproject.example-2/lib/x86/libQt53DCore.so: ungebraucht DT-Eintrag: Typ 0x1d arg 0xd8b1
W-Linker: /data/app/org.qtproject.example -2/lib/x86/libQt53DCore.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Concurrent.so: unbenutzter DT-Eintrag: type 0x1d arg 0xbb2
W Linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Concurrent.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W Linker: /data/app/org.q tproject.example-2/lib/x86/libQt53DRender.so: unbenutzter DT-Eintrag: type 0x1d arg 0x2a36b
W linker: /data/app/org.qtproject.example-2/lib/x86/libQt53DRender.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W-Linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Gamepad.so: ungebraucht DT-Eintrag: Typ 0x1d arg 0x2f36
W-Linker: /data/app/org.qtproject .example-2/lib/x86/libQt5Gamepad.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W Linker: /data/app/org.qtproject.example-2/lib/x86/libQt53DInput.so: Unbenutzter DT-Eintrag: Geben Sie 0x1d ein arg 0xadb2
W Linker: /data/app/org.qtproject.example-2/lib/x86/libQt53DInput.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W linker:/dat a/app/org.qtproject.example-2/lib/x86/libQt53DLogic.so: unbenutzter DT-Eintrag: type 0x1d arg 0x19c4
W Linker: /data/app/org.qtproject.example-2/lib/x86/ libQt53DLogic.so: nicht unterstützter Flags DT_FLAGS_1 = 0x81
W-Linker: /data/app/org.qtproject.example-2/lib/x86/libQt53DExtras.so: ungebraucht DT-Eintrag: Typ 0x1d arg 0x11617
W-Linker:/data /app/org.qtproject.example-2/lib/x86/libQt53DExtras.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W Linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Widgets.so: unbenutzter DT-Eintrag: Typ 0x1d Arg 0x6bf99
W-Linker: /data/app/org.qtproject.example-2/lib/x86/libQt5Widgets.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W-Linker: /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: ungebraucht DT-Eintrag: Typ 0x1d 0x8747 arg
W Linker: /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
I Qt: qt
W Linker starten:/data/data /org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: ungebraucht DT-Eintrag: Typ 0x1d arg 0x16dd
W-Linker: /data/data/org.qtproject.example/qt-reserved-files /plugins/bearer/libqandroidbearer.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W-Linker:/Daten/Daten /org.qtproject.example/qt-reserved-files/plugins/gamepads/libandroidgamepad.so: unbenutzter DT-Eintrag: type 0x1d arg 0x1223
W Linker: /data/data/org.qtproject.example/qt-reserved-files /plugins/gamepads/libandroidgamepad.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
W-Linker: /data/app/org.qtproject.example-2/lib/x86/libandroid_test.so: ungebraucht DT-Eintrag: Typ 0x1d arg 0x6f6
D OpenGLRenderer: Verwenden Sie EGL_SWAP_BEHAVIOR_PRESERVED: true
D: HostConnection :: get() Neue Host-Verbindung hergestellt 0xaa93bd80, tid 5833
D: HostConnection :: get() Neue Host-Verbindung 0xaa93bf80 gegründet, tid 5854
I OpenGLRenderer: Initialized EGL , Version 1.4
W OpenGLRenderer: Fehler Konfiguration wählen mit EGL_SWAP_BEHAVIOR_PRESERVED, retrying ohne ...
W-Linker: /data/data/org.qtproject.example/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: ungebraucht DT Eintrag : Typ 0x1d arg 0x3816
W-Linker: /data/data/org.qtproject.example/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: nicht unterstützte Flags DT_FLAGS_1 = 0x81
D: HostConnection :: get() New Host-Verbindung hergestellt 0x9ed4a8c0, tid 5862
D: HostConnection :: get() neue Host-Verbindung 0xaa305c00 gegründet, tid 5855
F libc: Fatal Signal 11 (SIGSEGV), Code 1, Fehler Adr 0x4 in tid 5862 (QtThread)
"org.qtproject.example" gestorben.

Antwort

0

Ich konnte die App auf einem physischen Gerät bereitstellen. Scheint ein Problem mit der (Konfiguration meiner) AVDs zu sein.