Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Can not build on ARM 32 bit (Raspberry Pi 4) #12

Open
lephuongbg opened this issue Apr 27, 2021 · 1 comment
Open

Can not build on ARM 32 bit (Raspberry Pi 4) #12

lephuongbg opened this issue Apr 27, 2021 · 1 comment

Comments

@lephuongbg
Copy link

Building this crate (during npm run tauri:build) throws following error:

error[E0308]: mismatched types
   --> /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/tauri-hotkey-sys-0.1.1/src/linux.rs:186:62
    |
186 |               let keycode = (xlib.XKeysymToKeycode)(display, key as u64) as i32;
    |                                                              ^^^^^^^^^^ expected `u32`, found `u64`
    |
help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
    |
186 |               let keycode = (xlib.XKeysymToKeycode)(display, (key as u64).try_into().unwrap()) as i32;
    |
@nothingismagick
Copy link
Sponsor Member

Thankyou for the report!

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

No branches or pull requests

2 participants