- 
Guest25
hello
 
- 
Guest25
 
- 
Guest25
very interesting as concept
 
- 
Guest25
i dont know if will succeed
 
- 
maripol
hi
 
- 
maripol
qr scanner dont work on windows & linux
 
- 
maripol
on linux when u click on qrcode image u'll c a blank screen
 
- 
maripol
on windows camera open but cant read code 
 
- 
maripol
open camera and is not doing anything else
 
- 
maripol
i put qr image  from all ungle so is is code problem 
 
- 
malinero
never tried on a laptop, but fwiw tested it recently on android and it worked just fine. 
 
- 
malinero
maripol: might be a deployment issue, like a missing Qt pluggin
 
- 
malinero
more precisely the Qt multimedia pluggin
 
- 
maripol
qt multimedia is on cmake file so is other issue
 
- 
maripol
on android works but most uses windows and few linux
 
- 
maripol
0.01 uses android
 
- 
malinero
i don't really understand why someone would want to scan a QrCode on a laptop 
 
- 
maripol
is easier from copying all ..... monero address
 
- 
maripol
there are tablets that runs windows
 
- 
maripol
or linux
 
- 
maripol
qrcode is must!
 
- 
malinero
"tablets that runs windows or linux" didn't know they exists, fair enough
 
- 
maripol
hi
 
- 
maripol
qr scanner dont work anywhere
 
- 
maripol
windows,linux android!
 
- 
maripol
before was working on android but now even there no!
 
- 
tobtoht
maripol: the QR Scanner isn't supported on windows and linux
 
- 
tobtoht
Not sure what build you're running on Android, but you need to make sure it was compiled with -DWITH_SCANNER
 
- 
maripol
is compiled  -DWITH_SCANNER on all versions
 
- 
maripol
option(WITH_SCANNER "Enable webcam QR scanner" ON)
 
- 
tobtoht
For Linux to work you need to compile Qt with -gstreamer, for Windows to work you need to include "vfw.h" in main.cpp. Not sure about Android.
 
- 
tobtoht
"compile Qt with -gstreamer" -> And have gstreamer-plugins-bad and gstreamer-plugins-good installed on your system.
 
- 
maripol
we are talking about static version.why u'll need  gstreamer-plugins-bad and gstreamer-plugins-good installed
 
- 
tobtoht
Good luck trying to get GStreamer to static link.
 
- 
maripol
oh
 
- 
maripol
gstreamer is module outside qt?
 
- 
tobtoht
GStreamer is the multimedia backend for Linux for QtMultimedia.
 
- 
tobtoht
Gstreamer itself loads plugins at runtime.
 
- 
tobtoht
Camerabin, which is required by Qt to load the camera, has a couple dozen other plugin dependencies.
 
- 
tobtoht
There is a way to compile and include plugins statically
 
- 
maripol
which
 
- 
tobtoht
But you'd have to figure out exactly which dependencies camerabin needs (which is not trivial, there is no way to get a dependency graph afaik) otherwise you bloat the binary with 50MB of useless plugins
 
- 
tobtoht
Moreover
 
- 
tobtoht
In Qt6.2 the entire QtMultimedia is revamped
 
- 
tobtoht
and camera access no longer depends on camerabin, but some other plugin
 
- 
tobtoht
so you'd have to do it all over again
 
- 
maripol
we are talking about qt 5.15.2
 
- 
maripol
why qt6
 
- 
tobtoht
Yes, I know
 
- 
tobtoht
I'm saying that, everything changes in Qt 6.2
 
- 
maripol
i'm confused from what u said
 
- 
maripol
what to do know
 
- 
maripol
what to do now
 
- 
tobtoht
Depends on what you want to achieve
 
- 
maripol
qrcode scanner to work
 
- 
maripol
is very important
 
- 
tobtoht
On linux?
 
- 
maripol
everywhere
 
- 
maripol
before was working on android now not
 
- 
maripol
on windows was working now not
 
- 
tobtoht
Can't help you with Android, haven't developed on that OS.
 
- 
tobtoht
Windows should be easy
 
- 
tobtoht
one sec
 
- 
tobtoht
I'm pretty sure this is all you need: 
paste.debian.net/plainh/c7ba109f 
 
- 
tobtoht
For macOS you're going to have to rewrite the scanner logic
 
- 
maripol
on main.cpp
 
- 
tobtoht
because its multimedia backend doesn't support QVideoProbe
 
- 
tobtoht
so you'll have to use QCameraImageCapture instead
 
- 
tobtoht
"on main.cpp" -> yes
 
- 
maripol
ok on linux?
 
- 
tobtoht
On Linux the only way is to either
 
- 
tobtoht
spend two weeks of your life trying to get GStreamer and all its dependencies and plugins to static link
 
- 
tobtoht
or ship the application as an AppImage
 
- 
maripol
"ship the application as an AppImage"  what will be the benefit
 
- 
selsta
QR scanner worked already
 
- 
tobtoht
If you go for the latter you're still going to have to manually include a plugin bundle and trick GStreamer to load plugins from the AppImage instead of the local filesystem
 
- 
selsta
on Mac
 
- 
tobtoht
Oh interesting
 
- 
selsta
will check if it got broken recently but not aware of it
 
- 
tobtoht
It didn't work on my machine
 
- 
maripol
is not working anywhere anymore selsta
 
- 
maripol
i confirm
 
- 
tobtoht
Any logs?
 
- 
selsta
I'm compiling currently, can test once I compiled
 
- 
maripol
on linux is blank screen
 
- 
maripol
on android the same
 
- 
selsta
this should also fix it on windows 
monero-project/monero-gui #3464 
 
- 
maripol
on windows camera open but nothing happens
 
- 
selsta
but I never tested it on windows
 
- 
maripol
selsta that fix is on cmake file
 
- 
selsta
Qr scanner worked without issues on mac
 
- 
maripol
windows,linux,android ?
 
- 
selsta
mac
 
- 
tobtoht
What macOS version?
 
- 
maripol
the only that i dont have mac
 
- 
selsta
11.4
 
- 
tobtoht
I guess Qt docs are wrong then
 
- 
selsta
I'm quite sure that is also works on Android and Windows, only static Linux was the issue
 
- 
maripol
can u try it now or not possilble?
 
- 
selsta
not really, I only have Mac and iOS phone
 
- 
maripol
make a executable for us
 
- 
selsta
tobtoht: what exactly failed for you on mac?
 
- 
maripol
i have android phone
 
- 
maripol
and linux
 
- 
tobtoht
selsta: Well, to be exact QVideoProbe would not deliver valid QVideoFrames. 
 
- 
tobtoht
I'm on Catalina though (10.15)
 
- 
tobtoht
also it appears I'm wrong on AV Foundation not supporting QVideoProbe. It's only missing for recording and media playback, not camera.
 
- 
tobtoht
 
- 
tobtoht
so it must be my machine / this version of macOS that's having issues
 
- 
maripol
anyway is not working on windows,linux,android
 
- 
maripol
selsta can u make exe for linux or android to test
 
- 
tobtoht
it not working on linux is expected
 
- 
tobtoht
and it's not going to work without a ton of effort
 
- 
maripol
if i'm so mad to try use qt6 instead of qt5 will be any benefit about qrcode scanner or no?
 
- 
tobtoht
GUI won't compile on Qt6 currently
 
- 
maripol
why?
 
- 
tobtoht
Qt6 has a few breaking API changes
 
- 
tobtoht
so those need to be resolved in the code first
 
- 
maripol
no escape
 
- 
maripol
qrscanner is very important
 
- 
maripol
selsta any suggestion?
 
- 
selsta
currently no, but malinero said they got it to work on android
 
- 
maripol
how?
 
- 
maripol
whereis he
 
- 
tobtoht
"Qt6 has a few breaking API changes" -> And it's not trivial either: QVideoProbe (which provides video frames to the qr scanner) got removed in Qt 6, so a rewrite of the scanning logic will be necessary.
 
- 
tobtoht
Also, Qt6.2 which is the first Qt release to include QtMultimedia, which the Qr scanner needs, is still in alpha and a nightmare to build as Guest6033 can attest to.
 
- 
maripol
oh
 
- 
malinero
maripol: did nothing special for the camera, just followed the standard android build. try testing with an apk from CI pipeline
 
- 
maripol
link for apk?
 
- 
malinero
 
- 
tobtoht
^ need to be logged in to github to view, probably
 
- 
maripol
yep
 
- 
maripol
i need to create account