Skip to content
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

[feat] about Tauri support for RISC-V platform #10945

Open
lily-Robot opened this issue Sep 10, 2024 · 5 comments · May be fixed by #12602
Open

[feat] about Tauri support for RISC-V platform #10945

lily-Robot opened this issue Sep 10, 2024 · 5 comments · May be fixed by #12602

Comments

@lily-Robot
Copy link

Describe the problem

I am evaluating the possibility of using Tauri to build desktop applications for the RISC-V platform. I would like to know if Tauri currently supports the RISC-V architecture, and whether there are any success stories or documentation available that could help me compile Tauri applications for RISC-V?

Describe the solution you'd like

If there is any relevant information or advice, could you please share it? Thank you!

Alternatives considered

No response

Additional context

No response

@lily-Robot
Copy link
Author

Or rather, I'd like to know how to port it, which is currently on the RISCR V 64 platform, Porting packages such as node, gtk, chorme is approaching maturity. I would like to participate in RISC V 64 support if I can

@FabianLars
Copy link
Member

I'm not aware of anything other than #8326 which is not much 🤷

@JaneX8
Copy link

JaneX8 commented Nov 6, 2024

I'm also interested in building Tauri apps for (and on) riscv architecture. So far I've tried the following inside a QEMU emulator. Using the riscv64-virt image and inspired by https://gist.github.com/apivovarov/98120ffb2d92f9dfce39925801271606.
But without success.

root@debian:/home/debian# uname -r
6.8.12-riscv64

root@debian:/home/debian# sh <(curl https://create.tauri.app/sh)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 16121  100 16121    0     0  14920      0  0:00:01  0:00:01 --:--:-- 15080
create-tauri-app: unknown CPU type: riscv64

Rust (https://doc.rust-lang.org/beta/book/ch01-02-hello-world.html) works fine on riscv:

root@debian:/home/debian# apt install build-essential
root@debian:/home/debian# curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
info: downloading installer
...
Current installation options:
   default host triple: riscv64gc-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

root@debian:/home/debian# rustc --version
rustc 1.82.0 (f6e511eec 2024-10-15)

root@debian:~/projects/hello# rustc main.rs
root@debian:~/projects/hello# ./main
Hello, world!

@trdthg
Copy link

trdthg commented Jan 2, 2025

Hi, I want to share some things I know.

According to the documentation, Tauri's webview (Linux) is built on top of WebKitGTK, I have submitted some RISC-V patches to WebKit over the past few months, so currently, compiling WebKit on the RISC-V platform should be ok, and some linux distributions have successfully packaged webkitgtk (appreciate their work), such as:WebKit/WebKit#36459 (comment)

However, jit is not fully supported, so there will be an impact on speed

@lily-Robot
Copy link
Author

Hi, I want to share some things I know.

According to the documentation, Tauri's webview (Linux) is built on top of WebKitGTK, I have submitted some RISC-V patches to WebKit over the past few months, so currently, compiling WebKit on the RISC-V platform should be ok, and some linux distributions have successfully packaged webkitgtk (appreciate their work), such as:WebKit/WebKit#36459 (comment)

However, jit is not fully supported, so there will be an impact on speed

👌 非常感谢,jit 应该问题不大

@kxxt kxxt linked a pull request Feb 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants