general:rust
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
general:rust [2023/01/06 11:55] – sunkan | general:rust [2023/02/21 11:05] (current) – sunkan | ||
---|---|---|---|
Line 41: | Line 41: | ||
</ | </ | ||
+ | ====== Cross compiling for ARMv7 ====== | ||
+ | Make sure to have the necessary external libraries available if needed. | ||
+ | Example with librrd (and its dependencies) | ||
+ | |||
+ | < | ||
+ | # Needs librrd-dev: | ||
+ | |||
+ | # | ||
+ | #| Status=Not/ | ||
+ | #|/ Err? | ||
+ | #||/ Name | ||
+ | # | ||
+ | #ii librrd-dev: | ||
+ | </ | ||
+ | |||
+ | Then to compile for armv7-unknown-linux-gnueabihf | ||
+ | < | ||
+ | cargo build -r --target armv7-unknown-linux-gnueabihf --config target.armv7-unknown-linux-gnueabihf.linker=\" | ||
+ | </ | ||
====== Rust error handling ====== | ====== Rust error handling ====== |
general/rust.txt · Last modified: 2023/02/21 11:05 by sunkan