User Tools

Site Tools


general:rust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
general:rust [2023/01/06 11:55] sunkangeneral:rust [2023/02/21 11:05] (current) sunkan
Line 41: Line 41:
 </code> </code>
  
 +====== Cross compiling for ARMv7 ======
 +Make sure to have the necessary external libraries available if needed.
 +Example with librrd (and its dependencies)
 +
 +<code>
 +# Needs librrd-dev:armhf for the last linking step
 +
 +#Desired=Unknown/Install/Remove/Purge/Hold
 +#| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
 +#|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
 +#||/ Name             Version      Architecture Description
 +#+++-================-============-============-=========================================================
 +#ii  librrd-dev:armhf 1.7.2-3+b7   armhf        time-series data storage and display system (development)
 +</code>
 +
 +Then to compile for armv7-unknown-linux-gnueabihf
 +<code>
 +cargo build -r --target armv7-unknown-linux-gnueabihf --config target.armv7-unknown-linux-gnueabihf.linker=\"arm-linux-gnueabihf-gcc\"
 +</code>
  
 ====== Rust error handling ====== ====== Rust error handling ======
general/rust.txt · Last modified: 2023/02/21 11:05 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki