scytheStudio / SCodes

This project is Qt & Qml wrapper for ZXing-C++ Library that is used for decoding 1D and 2D barcodes.
https://scythe-studio.com/
Apache License 2.0
104 stars 35 forks source link

Android white screen #42

Open niqt opened 5 months ago

niqt commented 5 months ago

HI, i compiled on Android but i see a white screen like the camera closed. Is there some work in progress or some my mistake? I cloned the zxing-cpp and compiled the example with Qt6.

radkoder commented 5 months ago

Hi, There is some work in progress now but all works for me on master branch. I'm building with Qt6.5.2.

Do you have some error logs? You can set SCODES_DEBUG option in CMake to enable debug output from SCodes.

It's possible that for some reason SCodes can't get access to the camera - permissions, or maybe some other app grabbing the camera. This should be logged if you enable debug logs.

niqt commented 5 months ago

Hi, the only strange thing that i see is: Warning: QML import could not be resolved in any of the import paths: com.scythestudio.scodes Warning: QML import could not be resolved in any of the import paths: ZXing I'm comlining directly the example, no new project.

niqt commented 5 months ago

I see: D libQmlBarcodeReader_arm64-v8a.so: New Camera set: QCamera(0x76adb6cd70) D libQmlBarcodeReader_arm64-v8a.so: Format: D libQmlBarcodeReader_arm64-v8a.so: Pixel format: Format_NV21 D libQmlBarcodeReader_arm64-v8a.so: Resolution: QSize(3840, 2160) D libQmlBarcodeReader_arm64-v8a.so: FPS: 7 - 30

but white screen with green rectangle. If i add in the qml the CaptureSession and comment the reader, the camera working. So no permission problem.

mateusz-fejcher commented 2 weeks ago

Hello @niqt Could you let me know if you are trying to run an example on an Android emulator? I've tried several Android devices and everything works fine. In my case, your issue is only reproducible on an Android emulator.