From e25c04d782ff129a1144b596106c6cfd2818d946 Mon Sep 17 00:00:00 2001 From: juliangaal Date: Thu, 6 Jun 2019 19:29:35 +0200 Subject: [PATCH] update linux example compilation instructions --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 98e760b..aa42ddc 100644 --- a/README.md +++ b/README.md @@ -63,23 +63,21 @@ fn main() -> Result<(), Error> { ``` #### Compile linux example (Raspberry Pi 3B) -files [here](https://github.com/juliangaal/mpu6050/blob/master/example/) Requirements: ```bash -$ apt-get install -qq gcc-armv7-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross +$ apt-get install -qq gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross ``` -and all dependencies in `example/Cargo.toml` Rustup: ```bash $ rustup target add armv7-unknown-linux-gnueabihf ``` -To configure the linker use `example/.cargo/config` +To configure the linker use `.cargo/config` file cross-compile with ```bash -$ cargo build --target=armv7-unknown-linux-gnueabihf +$ cargo build --examples --target=armv7-unknown-linux-gnueabihf ``` ## TODO