File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,17 @@ To cross-compile for a Raspberry Pi you need to run the following in your termin
125125rustup target add arm-unknown-linux-gnueabihf
126126```
127127
128- On Linux you also need the following dependencies
128+ You also need to install the following dependencies
129129
130+ <!-- DOCUSAURUS_CODE_TABS-->
131+
132+ <!-- Linux-->
130133``` bash
131134sudo apt-get update
132135sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
133136```
134137
135- On MacOS, do the following
136-
138+ <!-- MacOS-->
137139``` bash
138140# Tap the repository that provides the cross-compiler
139141brew tap messense/macos-cross-toolchains
@@ -146,8 +148,10 @@ brew install arm-unknown-linux-gnueabihf
146148# Verify the compiler is found
147149which arm-linux-gnueabihf-gcc || (echo " arm-linux-gnueabihf-gcc not found in PATH" && exit 1)
148150```
151+ <!-- END_DOCUSAURUS_CODE_TABS-->
149152</details >
150153
154+ <br >
151155If you need to compile for a target other than ` arm-linux-gnueabihf-gcc ` (` rpi ` )
152156some manual configuration may be needed (you may need to install the target
153157and/or a compiler/linker) and you may need to edit the auto-generated
You can’t perform that action at this time.
0 commit comments