mirage icon indicating copy to clipboard operation
mirage copied to clipboard

Port to linux phones

Open j0lol opened this issue 3 years ago • 24 comments

would be great to have this on pinephone :)

j0lol avatar Jul 18 '20 15:07 j0lol

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 .

besmily avatar Jul 18 '20 16:07 besmily

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?

mirukana avatar Jul 18 '20 16:07 mirukana

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)

j0lol avatar Jul 18 '20 17:07 j0lol

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.

mirukana avatar Jul 18 '20 17:07 mirukana

nice! i'll try to compile and test it in a bit and ill report any problems!

j0lol avatar Jul 18 '20 18:07 j0lol

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

rinigus avatar Jul 19 '20 09:07 rinigus

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

BurnyBoi avatar Jul 23 '20 07:07 BurnyBoi

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?)

j0lol avatar Aug 08 '20 13:08 j0lol

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)

j0lol avatar Aug 08 '20 20:08 j0lol

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.

rinigus avatar Aug 09 '20 09:08 rinigus

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

theotheroracle avatar Aug 22 '20 21:08 theotheroracle

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

karlkashofer avatar Sep 29 '20 07:09 karlkashofer

an appimage for arm64 would do on mobian, pmOS and manjaro I guess, only Ubuntu Touch can't run appimage

Thatoo avatar Oct 19 '20 19:10 Thatoo

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/

poVoq avatar Nov 18 '20 20:11 poVoq

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.

Thatoo avatar Nov 28 '20 15:11 Thatoo

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

karlkashofer avatar Nov 29 '20 20:11 karlkashofer

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. :(

Newbytee avatar Dec 13 '20 11:12 Newbytee

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.

thomas-ah avatar Jan 08 '21 10:01 thomas-ah

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).

delijati avatar Jan 24 '21 21:01 delijati

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.

mirukana avatar Jan 26 '21 01:01 mirukana

mirage 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.

delijati avatar Mar 28 '21 12:03 delijati

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.

mirukana avatar Apr 10 '21 06:04 mirukana

I would be interested in SailfishOS support. I understand that some version of Flatpak has been used on it.

Mikaela avatar Aug 31 '21 13:08 Mikaela

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

theotheroracle avatar Sep 05 '21 00:09 theotheroracle