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] Add Risc-v and Loongarch support #8326

Closed
jiangcuo opened this issue Dec 2, 2023 · 4 comments
Closed

[feat] Add Risc-v and Loongarch support #8326

jiangcuo opened this issue Dec 2, 2023 · 4 comments

Comments

@jiangcuo
Copy link

jiangcuo commented Dec 2, 2023

Describe the problem

Risc-v and Loongarch both support rust.

Describe the solution you'd like

Whether to consider adding support for these two architectures

Alternatives considered

No response

Additional context

No response

@JonasKruckenberg
Copy link
Member

Have you tried building an app for e.g. riscv linux?

I can think of a couple apis that would break, but for the most part it should just work™️

Maybe you can help us build out of list of issues that arise so were not completely in the dark

@jiangcuo
Copy link
Author

jiangcuo commented Jan 6, 2024

@JonasKruckenberg
Hi , When I use npm run tauri dev

image

I opened index.js. Found that loongarch64 and riscv64 were not added.

I had to try use cargo tauri dev with tauri.conf.json

 "build": {
    "beforeDevCommand": "npm run dev",
    "beforeBuildCommand": "npm run build",
    "devPath": "http://localhost:1420",
    "distDir": "../dist",
    "withGlobalTauri": false
  }

cargo tauri dev is ok. I can access my app.But when i use cargo tauri build ,I will revice error :

Finished release [optimized] target(s) in 36.62s
Error failed to build bundler settings: Unable to determine target-architecture

Manually run targer/release/binfile, I can open the app, but the program enter white screen.

image

It looks like the front-end service isn't working properly

I checked this issue and the problem is still there
#5143

Note,I'm testing in VM with virtio-gpu。
I'm going to test with virtio-gpu-gl or a physical machine to rule out opengl issues

Best Regards

@Kiri2002
Copy link

tested the loong64, just add the "loongarch64-unknown-linux-gnu" to the core's Cargo.toml's target, and works well.
see PR

@jiangcuo
Copy link
Author

After testing, it is a GTK issue with loongnix, and it has nothing to do with tauri, so the issue is closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants