Can android studio use jni to call and display the so library containing QWidget?
-
Hello everyone, thank you for your attention and help.
-
I would like to know whether Qt5.9.4's ui dynamic library (*.so, ndk17,android sdk api 32) can be displayed in Android Studio Chipmunk(NDK17, android sdk api32, android sdk build tools version31) through jni?
-
My app calls the so library containing the QWidget component, and the result is an unexplained crash.
-
Who knows what to do?
The following is the output information of the app crash:
2022-05-12 17:19:31.694 14385-14385/? I/e.ndkbuilddemo: Late-enabling -Xcheck:jni
2022-05-12 17:19:31.707 14385-14385/? E/e.ndkbuilddemo: Unknown bits set in runtime_flags: 0x8000
2022-05-12 17:19:31.708 14385-14385/? W/e.ndkbuilddemo: Unexpected CPU variant for X86 using defaults: x86
2022-05-12 17:19:32.064 14385-14420/com.example.ndkbuilddemo1 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
2022-05-12 17:19:32.065 14385-14420/com.example.ndkbuilddemo1 W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
2022-05-12 17:19:32.071 14385-14420/com.example.ndkbuilddemo1 D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
2022-05-12 17:19:32.072 14385-14420/com.example.ndkbuilddemo1 D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
2022-05-12 17:19:32.074 14385-14420/com.example.ndkbuilddemo1 D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
2022-05-12 17:19:32.053 14385-14385/com.example.ndkbuilddemo1 W/RenderThread: type=1400 audit(0.0:57): avc: denied { write } for name="property_service" dev="tmpfs" ino=8412 scontext=u:r:untrusted_app:s0:c155,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.example.ndkbuilddemo1
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 E/linker: normalize_path - invalid input: "C", the input path should be absolute
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 W/linker: Warning: unable to normalize "C" (ignoring)
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 E/linker: normalize_path - invalid input: "C", the input path should be absolute
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 W/linker: Warning: unable to normalize "C" (ignoring)
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 W/linker: Warning: "/data/app/com.example.ndkbuilddemo1--lwfCEoLIsl6NMByZznOPw==/lib/x86/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags)
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 W/linker: Warning: "/data/app/com.example.ndkbuilddemo1--lwfCEoLIsl6NMByZznOPw==/lib/x86/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags)--------- beginning of crash
2022-05-12 17:19:32.121 14385-14385/com.example.ndkbuilddemo1 A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 14385 (e.ndkbuilddemo1), pid 14385 (e.ndkbuilddemo1)
2022-05-12 17:19:32.107 14385-14385/com.example.ndkbuilddemo1 W/linker: Warning: "/data/app/com.example.ndkbuilddemo1--lwfCEoLIsl6NMByZznOPw==/lib/x86/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81 (ignoring unsupported flags) -