-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Version #390
Comments
As a first step of checking doability of this task it should be checked whether base libraries (like GTK4) can be compiled into webassembly. To check convergence and web browser compatibility you can run the current application with GTK4 Broadway backend.
|
I can help with Kivy if this is helpful! |
@Shahin-rmz How using Kivy is supposed to help? Kivy is Python framework, but Rnote is written with Rust and GTK4. |
I'm uncertain if this would help: https://github.com/tauri-apps/tauri-mobile |
I wonder if there can be a file-format compatible side project for android. I don't have enough knowledge in either of them but in the case of no interest/time, perhaps I can try to step up and contribute, saving students from searching endlessly for a proper but cross platform foss annotation software, myself included, at some time in the future (next year?), together :3 |
How is this going? Is there a android/web version in development? |
Trying to build this in version 0.8.2 where most of the dependencies in termux are available without manually building the dependencies. I'm currently stuck with the package gettext-sys. I pasted the logs here, hopefully someone more knowledgeable can help debug this. termux/termux-packages#17655 (comment) EDIT: Tried compiling in a Fedora environment but seems Termux crashes during the last package to be compiled. EDIT2: Somebody compiled this for aarch64 and just installed it from there. EDIT3: Running this on Termux-x11 + Hardware Acceleration through virgl and I am getting close to native performance on my tablet. |
that's great! is there a build somewhere or do i have to build this myself? i would rather not |
@DeltriDev I used the build here https://fedora.pkgs.org/39/terra/rnote-0:0.10.1-1.fc39.aarch64.rpm.html. |
If someone makes a Flutter version in the future, maybe the flutter_rust_bridge could be helpful for reusing code instead of having to rewrite everything. |
Someone's working on an Android backend for Gtk: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7555 |
man i would love to see something like this just so i can check my notes on my phone!! |
I managed to get RNote to work in Android natively(no proot/chroot) through termux with hardware acceleration |
could you let us know how you did it? what's the performance like? |
Performance is much more better than chroot and proot, especially for large rnote files Also it responds correctly to touch for panning/zooming and pen for writing I did it by patching rnote and several crates to compile against Android's bionic libc(Check PR above) Soon enough once the merging with termux packages is done, installing rnote will be as easy as "pkg install rnote" If you're in the termux discord or rnote dev matrix channel then you'll find that I've sent a short video there demonstrating rnote |
If you're interested in how to setup termux then read these in order https://github.com/EDLLT/Termux-Desktops/blob/main/Documentation/terminology.md https://github.com/EDLLT/Termux-Desktops/blob/main/Documentation/native/termux_native.md (When setting up hardware acceleration, use zink instead of kgsl since that's still being developed) |
Is this in the repos now? Doing a |
The pull request to get rnote onto the termux repos has been merged! I am running |
Ok, running into several issues. Will go home and resume troubleshooting. |
when i run it it says it can't find the package... interesting |
Install the x11 repo first with |
@sound-friend , @EDLLT , and I were in the termux discord the other night getting EDLLT's packaging of Rnote to work in Termux. It... kind of works, the application loads, but there are several issues. The steps I did to get it """working""" were:
Tl;dr -- this approach is nowhere near a functioning "android version" of Rnote. We should probably look into compiling GTK natively on Android or something; this approach uses too many workarounds and the app doesen't have full functionality and segfaults. |
There seems to be a problem with the Zink driver on my device (Pixel 8a): When I run Rnote without `MESA_LOADER_DRIVER_OVERRIDE=zink, this doesn't happen. |
Yeah, zink has a lot of issues. When I run without zink, I don't get the segfault on maximizing the window |
Zink hardware acceleration is for Adreno GPUs, from my Google search, the Pixel 8a has a Mali GPU In your case, running without zink makes it use llvmpipe which is a software rasterizer to run using the CPU(cpus are not designed for rendering so it's slow) Instead, you could setup VirGL(Virtual opengl) for termux, it's a bit more complicated than zink so you'd need to ask people in the termux discord server) |
Thanks for that tip. I got it working by using the following commands: But it does crash when opening the side bar or the open file dialog (but opening files via the file manager works) with this error message:
|
Tried the following on two devices. You might have to test which one will work for your device. Run InstallationZink
Turnip
Start XFCE4
Run programZink
Turnip
|
Any update on this??? |
It would be super cool if there was an Android version of the full rnote. In another feature request (#245) , a commenter mentioned compiling to webassembly to bring android support. I think as long as the compiled webassembly version was distributed as a PWA that could be installed and used offline that would satisfy this feature request
Some context: I am a college student and my day to day loadout is a laptop (non touch) and android tablet with stylus (Galaxy Tab S6 Lite) as it is more convenient than carrying my wired Wacom tablet around to classes.
The text was updated successfully, but these errors were encountered: