mirage
mirage copied to clipboard
Port to linux phones
would be great to have this on pinephone :)
est ce possible de l'integrer sur htpps?
Le sam. 18 juil. 2020 à 17:41, jo! [email protected] a écrit :
would be great to have this on pinephone :)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mirukana/mirage/issues/108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP5FQZCDIJ3LVC6EULHZTZTR4G7EPANCNFSM4PABQQCQ .
From what I've heard, publishing on Flathub (#1) would give us ready to install builds for non-x86 architectures. Until then, you can build your own flatpak or try a manual installation, whichever works best.
est ce possible de l'integrer sur htpps?
htpps?
i mean even if it builds id worry about compatibility problems (for example, a lot of apps on postmarketOS dont draw correctly where the screen is and a lot need ui changes for the smaller screen)
The UI has been designed to work even in very small windows, but I don't have the hardware to test it on mobile devices. If you can get it running, please report any issues.
nice! i'll try to compile and test it in a bit and ill report any problems!
pmOS does not support Flatpaks (https://wiki.postmarketos.org/wiki/FAQ#Is_support_for_flatpack.2C_snap_and_Appimage_planned.3F). If you are on pmOS, you would have to contact packagers or help them
The AUR version builds for Manjaro ARM on Pinephone. It doesn't work right with phosh though since the on-screen keyboard doesn't seem to map to it properly
Tried to compile on laptop using INSTALL.md, copied to pmOS phone. $ ./mirage ./mirage: line 1: ELF: not found ./mirage: line 2: ��: not found ./mirage: line 3: can't open �: no such file ./mirage: line 3: T��罍 �6���GNU��@: not found ./mirage: line 3: CE��t V: not found ./mirage: line 5: syntax error: unterminated quoted string
The binary works fine on my laptop (I assume this is bc im using an x86_64 processor on laptop and ARM on phone, is there a way to cross compile?)
Installed Arch Linux ARM on pinephone and trying matrix-mirage-git from AUR...
$ mirage
! 19:49:50 | Could not find the Qt platform plugin "wayland" in ""
F 19:49:50 | This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped)
Seen https://forum.snapcraft.io/t/problem-launching-qt-snaps-in-wayland/7055 Trying the qt5-wayland arch package...
It works! Almost perfectly too! Only problems are:
- it cant "scroll" with touch on room list (i can still search though, so this isnt a massive problem)
- it isnt obvious how to exit menus like the join room menu on portrait mode (maybe add a back button) but landscape solves this
i dont know if i should close this? it seems to work on arch linux ARM (and probably pmOS if done right) but work needs to be done if this is ported to ubports (since they use their own stuff that makes it annoying to port)
Re scrolling in room list: it is not very well working on Sailfish/Flatpak either. What seems to work is holding same spot for a bit longer and scroll after that. Hard to say where is it coming from, probably something (over)handling mouse events.
Re exit menus: as swipe back doesn't work, indeed, some kind of escape route is needed. Same goes for any device (PC or phone) if Mirage is shown as a slim window with a single pane. Another example is logged in user details - cannot escape from there unless you get into wide mode.
the scrolling thing is just a qml bug with wayland that isn't really in the scope of fixable by this project ( afaik ) but the back button was something that i already thought was implemented ? ( except in the user profile screen )
porting to ubports could theoretically be the scope of this issue though but that seems like a long and tedious process
There is a "intent to package" for Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970814
So it will soon be available in Mobian on Pinephone!
Meanwhile it can be easily compiled on mobian: https://pastebin.com/2NPfLj1y
an appimage for arm64 would do on mobian, pmOS and manjaro I guess, only Ubuntu Touch can't run appimage
Porting to UBports is actually quite easy* and this projects seems to use qt QuickControls2 right? Those are natively used in Ubuntu Touch. The problem right now is that UT is still on qt 5.9, but an upgrade to qt 5.12 should land in the coming weeks.
- https://clickable-ut.dev/en/latest/
There is a "intent to package" for Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970814
So it will soon be available in Mobian on Pinephone!
Meanwhile it can be easily compiled on mobian: https://pastebin.com/2NPfLj1y
Impossible to find the paquet qt5-default I couldn't install mirage.
There is a "intent to package" for Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=970814 So it will soon be available in Mobian on Pinephone! Meanwhile it can be easily compiled on mobian: https://pastebin.com/2NPfLj1y
Impossible to find the paquet qt5-default I couldn't install mirage.
Its now in the mobian repo, just do apt update apt install matrix-mirage
pmOS does not support Flatpaks (https://wiki.postmarketos.org/wiki/FAQ#Is_support_for_flatpack.2C_snap_and_Appimage_planned.3F). If you are on pmOS, you would have to contact packagers or help them
Wrong. That FAQ entry was wrong, and I've since updated it.
Also, Mirage is now available on postmarketOS Edge. It will will probably be available in stable mid 2021 as I missed Alpine 3.13. :(
Would just like to note Mirage is also available on Arch linux through the matrix-mirage AUR package. Confirmed usable and working for example in Manjaro's Plasma Mobile distribution (latest beta thread, latest dev build location) and Danct's Arch + Phosh distribution.
I'm compiling mirage for the ubports. I got it so far working on desktop (arm docker for ubports), but when i copy it to phone and start it there only the loading spinner is shown. It seams it can't find the qml sources as the error message is:
qrc:/src/gui/--: No such file or directory
# what does these "--" point to?
The qml files are definitely referenced in the executable. I removed the src folder, and it still works on desktop (arm docker).
Until 257a4033e446af25b8e8113bc8c3f53b982de5a3, anything passed as the first argument to mirage was considered a path to a QML file in src/gui to load in place of UI.qml (that was a shortcut for development basically). Wherever you call the mirage binary, either don't add --
to the arguments, or have UI.qml
before it, e.g. mirage UI.qml -- ...
.
Once the next version is released, workarounds won't be needed anymore.
Got it running on my Ubuntu Touch (OnePlus One) -> It seams to be not able to understand the screen size (orientation works) and i get a
segmentation fault
after selecting a channel.
Re exit menus: as swipe back doesn't work, indeed, some kind of escape route is needed. Same goes for any device (PC or phone) if Mirage is shown as a slim window with a single pane. Another example is logged in user details - cannot escape from there unless you get into wide mode.
This has now been taken care of in 5be5e94e2af482a78498dcedaa40cd490946d7c9 and b7aa3ff018af3643f93c8cd18bb48a2820933b6b.
I would be interested in SailfishOS support. I understand that some version of Flatpak has been used on it.
dunno if flatpak is the ideal way to run it on sailfish, it would probably be better to just build to the qt version sailfish has already so you don't need to install the flatpak runner and the kde sdk