I'm not able to access android camera in my Qt widget application..i tried QCamera API it's returning error in Debug shown as below
D libCamera.so: ../Camera/main.cpp:13 (int main(int, char**)): hi W
linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqgif.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqicns.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqico.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqjpeg.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtga.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqtiff.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwbmp.so:
unsupported flags DT_FLAGS_1=0x81 W linker :
/data/data/org.qtproject.example/qt-reserved-files/plugins/imageformats/libqwebp.so:
unsupported flags DT_FLAGS_1=0x81 W libCamera.so: (null):0 ((null)):
The video surface is not compatible with any format supported by the
camera V BoostFramework: BoostFramework() : mPerf =
com.qualcomm.qti.Performance#42a0529 D Camera : app passed NULL
surface D Camera : app passed NULL surface W libCamera.so: (null):0
((null)): The video surface is not compatible with any format
supported by the camera D Camera : app passed NULL surface D Camera
: app passed NULL surface
"org.qtproject.example" died.
Sir its something like, when i run the app in my android device my device camera should be accessed/opened...
Here's my camera.cpp code--->
If any corrections please let me know?
include "camera.h"
include "ui_camera.h"
Camera::Camera(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Camera)
{
ui->setupUi(this);
camera = new QCamera;
viewfinder = new QCameraViewfinder;
camera->setViewfinder(viewfinder);
viewfinder->show();
camera->start(); // to start the viewfinder
imageCapture = new QCameraImageCapture(camera);
camera->setCaptureMode(QCamera::CaptureStillImage);
camera->start(); // Viewfinder frames start flowing
camera->searchAndLock();
imageCapture->capture();
camera->unlock();
}
Related
I am trying to make an application with QML and C++ for Android on Qt6. I used a sample code from Qt help segment for checking if the camera works or not (see the code segment). I have implemented C++ just for loading the QML file.
My problem is the camera does not show up in the app, I am using Android 10 phone as test device.
import QtQuick
import QtMultimedia
Item {
width: 640
height: 360
CaptureSession {
camera: Camera {
id: camera
focusMode: Camera.FocusModeAutoNear
customFocusPoint: Qt.point(0.2, 0.2) // Focus relative to top-left corner
}
videoOutput: videoOutput
}
VideoOutput {
id: videoOutput
anchors.fill: parent
}
}
The error I face is following. Please help me with this.
W AdrenoUtils: <ReadGpuID_from_sysfs:194>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
W AdrenoUtils: <ReadGpuID:218>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
W Gralloc3: mapper 3.x is not supported
D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.test activity: org.qtproject.qt.android.bindings.QtActivity#21c7d27
W Qt A11Y : Could not (yet) activate platform accessibility.
W qtMainLoopThrea: type=1400 audit(0.0:11018091): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=17688 scontext=u:r:untrusted_app:s0:c189,c258,c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
D ForceDarkHelper: updateByCheckExcludeList: pkg: org.qtproject.example.test activity: org.qtproject.qt.android.bindings.QtActivity#21c7d27
D SurfaceView: UPDATE null, mIsCastMode = false
E libc : Access denied finding property "camera.aux.packagelist"
E libc : Access denied finding property "vendor.camera.hal1.packagelist"
E libc : Access denied finding property "camera.aux.packagelist"
W System.err: java.lang.RuntimeException: setParameters failed
W System.err: at android.hardware.Camera.native_setParameters(Native Method)
W System.err: at android.hardware.Camera.setParameters(Camera.java:2250)
W System.err: java.lang.RuntimeException: setParameters failed
W System.err: at android.hardware.Camera.native_setParameters(Native Method)
W System.err: at android.hardware.Camera.setParameters(Camera.java:2250)
W Gralloc3: allocator 3.x is not supported
I ct.example.tes: ProcessProfilingInfo new_methods=210 is saved saved_to_disk=1 resolve_classes_delay=8000
W IInputConnectionWrapper: getExtractedText on inactive InputConnection
W IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
W BpBinder: Slow Binder: BpBinder transact took 340 ms, interface=android.hardware.ICamera, code=6 oneway=false
D Camera : app passed NULL surface
D Camera : app passed NULL surface
W BpBinder: Slow Binder: BpBinder transact took 337 ms, interface=android.hardware.ICamera, code=1 oneway=false
All of the sudden, when trying to deploy and debug QT Android app that's what I get. The app gets deployed just fine and runs just fine however GDB dies. Already tried removing entire Android-SDK folder and redownloading. Is it really the time to wipe-out the entire QT installation (again) ?
Two message boxes are shown:
Title:"Executable Failed"
Msg: Command aborted"
Title: "Unexpected GDB Exit - QT Creator"
Msg: "The GDB process terminated unexpectedly (exit code 0)."
App log:
10:22:07: Debugging starts W main : type=1400 audit(0.0:86622):
avc: granted { read } for pid=18154 name="u:object_r:net_dns_prop:s0"
dev="tmpfs" ino=1835 scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:object_r:net_dns_prop:s0 tclass=file I ect.PROJECT_NAMEoke:
Late-enabling -Xcheck:jni E ect.PROJECT_NAMEoke: Unknown bits set in
runtime_flags: 0x8000 I ect.PROJECT_NAMEoke: Reinit property:
dalvik.vm.checkjni= false W re-initialized>: type=1400
audit(0.0:86623): avc: denied { read } for pid=18154
name="u:object_r:mmi_prop:s0" dev="tmpfs" ino=1831
scontext=u:r:untrusted_app_25:s0:c512,c768
tcontext=u:object_r:mmi_prop:s0 tclass=file permissive=0 E libc :
Access denied finding property "runtime.mmitest.isrunning" D
ActivityThread: Attach thread to application W ActivityThread:
Application org.qtproject.PROJECT_NAMEoken is waiting for the debugger
on port 8100... I System.out: Sending WAIT chunk I System.out:
Debugger has connected I System.out: waiting for debugger to settle...
I System.out: waiting for debugger to settle... Could not load shared
library symbols for 312 libraries, e.g.
/system/lib/libandroid_runtime.so. Use the "info sharedlibrary"
command to see the complete listing. Do you need "set
solib-search-path" or "set sysroot"?I System.out: debugger has settled
(7129) I ect.PROJECT_NAMEoke: The ClassLoaderContext is a special
shared library. I ect.PROJECT_NAMEoke: QarthPatchMonintor::Init 01-10
10:22:16.053 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::StartWatch 01-10 10:22:16.053 18154 18154 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::WatchPackage: /data/hotpatch/fwkhotpatch/ 01-10
10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckAndWatchPatch:
/data/hotpatch/fwkhotpatch/org.qtproject.PROJECT_NAMEoken 01-10
10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckAndWatchPatch: /data/hotpatch/fwkhotpatch/all
01-10 10:22:16.054 18154 18154 I ect.PROJECT_NAMEoke: I
ect.PROJECT_NAMEoke: QarthPatchMonintor::Run 01-10 10:22:16.054 18154
18154 I ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::Reading 01-10 10:22:16.055 18154 18207 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckNotifyEvent 01-10 10:22:16.055 18154 18207 I
ect.PROJECT_NAMEoke: I ect.PROJECT_NAMEoke:
QarthPatchMonintor::CheckNotifyEvent before read 01-10 10:22:16.055
18154 18207 I ect.PROJECT_NAMEoke: I HwApiCacheMangerEx: apicache
path=/storage/emulated/0 state=mounted
key=org.qtproject.PROJECT_NAMEoken#10165#256 I HwApiCacheMangerEx:
apicache path=/storage/emulated/0 state=mounted
key=org.qtproject.PROJECT_NAMEoken#10165#0 I AwareBitmapCacher: init
processName:org.qtproject.PROJECT_NAMEoken pid=18154 uid=10165 V
ActivityThread: callActivityOnCreate W System : ClassLoader
referenced unknown path: E AwareLog: AtomicFileUtils: readFileLines
file not exist: android.util.AtomicFile#cb0695 V HwWidgetFactory: :
successes to get AllImpl object and return.... I
OverScrollerOptimization: start init SmartSlideOverScroller and get
the overscroller config I OverScrollerOptimization: get the
overscroller config W WindowDecorActionBar: should not do the
transition or the transition anim is null or it is running or the
mContainer view is null or mContainer view hasn't been drawn to screen
D HwGalleryCacheManagerImpl: mIsEffect:false D Qt JAVA : Class
org.qtproject.qt5.android.multimedia.QtMultimediaUtils does not
implement setActivity method I QtCore : Start I Qt : qt started
D ActivityThread: add activity client record, r=
ActivityRecord{7b59680 token=android.os.BinderProxy#fba4a25
{org.qtproject.PROJECT_NAMEoken/org.qtproject.qt5.android.bindings.QtActivity}}
token= android.os.BinderProxy#fba4a25 D HiTouch_PressGestureDetector:
onAttached, package=org.qtproject.PROJECT_NAMEoken, windowType=1,
mHiTouchRestricted=false I iGraphics: [0020080c] pn:
org.qtproject.PROJECT_NAMEoken, p: 18154 I iGraphics: [0030050c] PV 10
I iGraphics: [0030050c] no element 'igfx' I iGraphics: [0030050c]
LoadCloudParams lib file success. E Parcel : Reading a NULL string
not supported here. D mali_winsys: EGLint
new_window_surface(egl_winsys_display *, void *, EGLSurface,
EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 W
Gralloc3: mapper 3.x is not supported E :
APS:IFLoad:importExternalFunctions, search function
createNewHwApsUtils failed, dlsym err:undefined symbol:
createNewHwApsUtils D : APS:importExternalFunctions OK I
HwViewRootImpl: removeInvalidNode jank list is null W System.err:
java.lang.ClassNotFoundException: Didn't find class
"org.qtproject.qt5.android.network.QtNetwork" on path:
DexPathList[[],nativeLibraryDirectories=[/system/lib]] W System.err:
at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
W System.err: at
java.lang.ClassLoader.loadClass(ClassLoader.java:379) W System.err:
at java.lang.ClassLoader.loadClass(ClassLoader.java:312) D
libPROJECT_NAMEoken_armeabi-v7a.so: QML Debugger: Waiting for
connection on port 16963... D libPROJECT_NAMEoken_armeabi-v7a.so:
About to request permissions D libPROJECT_NAMEoken_armeabi-v7a.so:
Permissions granted W libPROJECT_NAMEoken_armeabi-v7a.so:
qrc:/main.qml:176:5: QML Connections: Implicitly defined onFoo
properties in Connections are deprecated. Use this syntax instead:
function onFoo() { ... } W libEGL : EGLNativeWindowType
0xceced1c8 disconnect failed D mali_winsys: EGLint
new_window_surface(egl_winsys_display *, void *, EGLSurface,
EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D
mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *,
EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns
0x3000 I Camera : open camera: 0, package name:
org.qtproject.PROJECT_NAMEoken D HwFrameworkSecurityPartsFactory:
HwFrameworkSecurityPartsFactory in. I HwFrameworkSecurityPartsFactory:
add HwFrameworkSecurityPartsFactory to memory. I HwCameraUtil:
notifySurfaceFlingerCameraStatus : isFront = false , isOpend = true D
SensorManager: 0xb24f49c8 addFd fd=107 W Gralloc3: allocator 3.x is
not supported W libEGL : EGLNativeWindowType 0xb96c3008 disconnect
failed D mali_winsys: EGLint new_window_surface(egl_winsys_display *,
void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean)
returns 0x3000 D libPROJECT_NAMEoken_armeabi-v7a.so: needed to resize
D libPROJECT_NAMEoken_armeabi-v7a.so: size: 0 , new size: 6220800 D
AwareBitmapCacher: handleInit switch not opened pid=18154
The app runs fine as usually.
I am trying this example app on qt's website. It builds without error and when I tried to run on a Samsung J7 with Android 8.1.0, it the white screen comes up and then the app crashes. In the Qt creator, this message shows as application output
E Zygote : isWhitelistProcess - Process is Whitelisted
E libpersona: scanKnoxPersonas
E libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G610F_8.1.0_0008, [-1 -1 -1 -1 0 1]
I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=org.qtproject.example.androidTest4
I zygote : Late-enabling -Xcheck:jni
D ActivityThread: Added TimaKeyStore provider
D MDO : MDO if sIsMdo=false, sIsCheckMdo=false, uid = 10234
D Proxy : mdoP is null: 10234
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Svg.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Sensors.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5Xml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.androidTest4-wQpu1e5t-HXJTHLGN4W7gQ==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : qt start
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/plugins/sensors/libqtsensors_android.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : Sensors start
I zygote : Do partial code cache collection, code=29KB, data=27KB
I zygote : After code cache collection, code=29KB, data=27KB
I zygote : Increasing code cache capacity to 128KB
D OpenGLRenderer: HWUI GL Pipeline
I zygote : Do partial code cache collection, code=60KB, data=59KB
I zygote : After code cache collection, code=60KB, data=59KB
I zygote : Increasing code cache capacity to 256KB
I zygote : Do full code cache collection, code=125KB, data=102KB
I zygote : After code cache collection, code=109KB, data=78KB
D : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
D InputTransport: Input channel constructed: fd=56
D ViewRootImpl#74fba6a[QtActivity]: setView = DecorView#fbadb5b[QtActivity] TM=true MM=false
W Activity: AppLock checkAppLockState locked:false verifying:false pkgName = org.qtproject.example.androidTest4 isInMultiWindowMode:false showWhenLocked:false
D ViewRootImpl#74fba6a[QtActivity]: dispatchAttachedToWindow
V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
D ViewRootImpl#74fba6a[QtActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 3756800000} changed=true
I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : org.qtproject.example.androidTest4
D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
D OpenGLRenderer: eglCreateWindowSurface = 0xe1f0ebc0, 0xdfec3808
D ViewRootImpl#74fba6a[QtActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D ViewRootImpl#74fba6a[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#aa71336 nm : org.qtproject.example.androidTest4 ic=null
D InputMethodManager: startInputInner - Id : 0
I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D InputTransport: Input channel constructed: fd=65
D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper#2.0-impl.so from current namespace instead of sphal namespace.
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#2c1d237 nm : org.qtproject.example.androidTest4 ic=null
D InputMethodManager: startInputInner - Id : 0
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtSensors/libdeclarative_sensors.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.androidTest4/qt-reserved-files/qml/QtQuick/Controls.2/Fusion/libqtquickcontrols2fusionstyleplugin.so" has unsupported flags DT_FLAGS_1=0x81
W libandroidTest4.so: (null):0 ((null)): QQmlApplicationEngine failed to load component
W libandroidTest4.so: (null):0 ((null)): qrc:/main.qml:42 Cannot assign to non-existent property "footer"
08-23 11:53:51.290 11578 11648 W libandroidTest4.so:
D ViewRootImpl#74fba6a[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 0
D InputTransport: Input channel destroyed: fd=65
D OpenGLRenderer: eglDestroySurface = 0xe1f0ebc0, 0xdfec3800
D ViewRootImpl#74fba6a[QtActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x5 surface={valid=false 0} changed=true
"org.qtproject.example.androidTest4" died.
Since I have no prior experience in developing Android on Qt, I have no idea how to solve this issue. The setup in Qt for Android has the latest Android SDK, JRE inside the Android Studio folder and Android NDK version 17. Any guidance is appreciated.
I'm trying to develop an Android Application. This software use the AWS services. The compilation and link work but it crashes at the very beginning of the execution.
I'm using Qt 5.11 and I think that the configuration is good (I'm using the last Android SDK and the NDK 10e) because I can run a simple Android application
I'm using the last AWS C++ library. I compiled this library using this cake command : cmake -DBUILD_ONLY="email;cognito-identity;lambda;core;cognito-idp;identity-management" -DNDK_DIR="/Downloads/android-ndk-r10e" -DANDROID_STL=gnustl_shared -DTARGET_ARCH=ANDROID -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="/aws-sdk-cpp/aws_build_android/build_dynamic_output" /aws-sdk-cpp/aws_build_android/aws-sdk-cpp-master
A s I said, the application crashes with this ultimate debug message:
F libc : Fatal signal 6 (SIGABRT), code -6 in tid 8731 (qtMainLoopThrea)
Here you are the complete list of application debug messages :
E Zygote : isWhitelistProcess - Process is Whitelisted
E libpersona: scanKnoxPersonas
E libpersona: Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
W SELinux : SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SM-G930F_8.0.0_0018, [-1 -1 -1 -1 0 1]
I SELinux : SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=org.qtproject.example.crio_Android
I zygote : Late-enabling -Xcheck:jni
D TimaKeyStoreProvider: TimaKeyStore is not enabled: cannot add TimaSignature Service and generateKeyPair Service
D ActivityThread: Added TimaKeyStore provider
I zygote : no shared libraies, dex_files: 1
I zygote : Do partial code cache collection, code=31KB, data=27KB
I zygote : After code cache collection, code=31KB, data=27KB
I zygote : Increasing code cache capacity to 128KB
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Widgets.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5Charts.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/app/org.qtproject.example.crio_Android-YwAVQhCj0m2GFmkjJTkxTg==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x81
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x81
I Qt : qt started
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x81
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 674 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1560 us, width=66, height=96
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1363 us, width=66, height=96
I zygote : Do partial code cache collection, code=59KB, data=54KB
I zygote : After code cache collection, code=59KB, data=54KB
I zygote : Increasing code cache capacity to 256KB
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 413 us, width=5, height=5
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 527 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 593 us, width=30, height=30
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 412 us, width=5, height=5
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 461 us, width=12, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 457 us, width=12, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 1234 us, width=66, height=48
D skia : Encode PNG Singlethread processname=org.qtproject.example.crio_Android : 375 us, width=2, height=2
D OpenGLRenderer: HWUI GL Pipeline
D ViewRootImpl#12633f4[QtActivity]: setView = DecorView#3d0a71d[QtActivity] TM=true MM=false
D ViewRootImpl#12633f4[QtActivity]: dispatchAttachedToWindow
V Surface : sf_framedrop debug : 0x4f4c, game : false, logging : 0
D ViewRootImpl#12633f4[QtActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 3761723392} changed=true
I OpenGLRenderer: Initialized EGL, version 1.4
D OpenGLRenderer: Swap behavior 2
D libGLESv1: STS_GLApi : DTS, ODTC are not allowed for Package : org.qtproject.example.crio_Android
D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1920]-format:1
D OpenGLRenderer: eglCreateWindowSurface = 0xe7b37918
D ViewRootImpl#12633f4[QtActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D ViewRootImpl#12633f4[QtActivity]: MSG_WINDOW_FOCUS_CHANGED 1
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#d6c9b60 nm : org.qtproject.example.crio_Android ic=null
I InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
V InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo#ad59819 nm : org.qtproject.example.crio_Android ic=null
W linker : "/data/data/org.qtproject.example.crio_Android/qt-reserved-files/plugins/styles/libqandroidstyle.so" has unsupported flags DT_FLAGS_1=0x81
**F libc : Fatal signal 6 (SIGABRT), code -6 in tid 8731 (qtMainLoopThrea)**
Thank you very much for your help!
Is it possible to run Qt 3D with pure C++ on android? All C++ examples, like the basic shape C++ example, got this entry in the .pro file:
android|ios|tvos|winrt {
warning( "This example is not supported for android, ios, tvos, or winrt." )
}
I wrote an app that is very similar to the example but smaller. It's just a Qt3DWindow with one entity and some components. It works on my laptop (Windows 8.1) but it crashes on my AVDs.
I tried some Nexus and Pixel AVDs with APIs ranging from 23 to 25 with software and hardware graphics rendering.
I followed this guide to set up QtCreator 2.3.0 and I'm using Qt 5.9.0-X86-rc. All android examples are running fine.
This is the application output:
I art : Not late-enabling -Xcheck:jni (already on)
W System : ClassLoader referenced unknown path:
I QtCore : Start
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Gui.so: unused DT entry: type 0x1d arg 0x53bd4
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Network.so: unused DT entry: type 0x1d arg 0x13595
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DCore.so: unused DT entry: type 0x1d arg 0xd8b1
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DCore.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Concurrent.so: unused DT entry: type 0x1d arg 0xbb2
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Concurrent.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DRender.so: unused DT entry: type 0x1d arg 0x2a36b
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DRender.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Gamepad.so: unused DT entry: type 0x1d arg 0x2f36
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Gamepad.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DInput.so: unused DT entry: type 0x1d arg 0xadb2
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DInput.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DLogic.so: unused DT entry: type 0x1d arg 0x19c4
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DLogic.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DExtras.so: unused DT entry: type 0x1d arg 0x11617
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt53DExtras.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Widgets.so: unused DT entry: type 0x1d arg 0x6bf99
W linker : /data/app/org.qtproject.example-2/lib/x86/libQt5Widgets.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unused DT entry: type 0x1d arg 0x8747
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
I Qt : qt start
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unused DT entry: type 0x1d arg 0x16dd
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/gamepads/libandroidgamepad.so: unused DT entry: type 0x1d arg 0x1223
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/gamepads/libandroidgamepad.so: unsupported flags DT_FLAGS_1=0x81
W linker : /data/app/org.qtproject.example-2/lib/x86/libandroid_test.so: unused DT entry: type 0x1d arg 0x6f6
D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D : HostConnection::get() New Host Connection established 0xaa93bd80, tid 5833
D : HostConnection::get() New Host Connection established 0xaa93bf80, tid 5854
I OpenGLRenderer: Initialized EGL, version 1.4
W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: unused DT entry: type 0x1d arg 0x3816
W linker : /data/data/org.qtproject.example/qt-reserved-files/plugins/sceneparsers/libgltfsceneimport.so: unsupported flags DT_FLAGS_1=0x81
D : HostConnection::get() New Host Connection established 0x9ed4a8c0, tid 5862
D : HostConnection::get() New Host Connection established 0xaa305c00, tid 5855
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 5862 (QtThread)
"org.qtproject.example" died.
I was able to deploy the app on a physical device. Seems to be an issue with the (configuration of my) AVDs.