From 18873c4b3e7fa8f03e8fc19ba0f852f6ca1e9188 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Fri, 8 Nov 2024 14:10:51 +0100 Subject: [PATCH] Update description for compiling the stuff --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9ece53f..1b3d891 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,15 @@ Feedback is highly appreciated. You can reach me via - E-Mail: info@rustysoft.de ## Build -If you want to build PbDbFixer yourself, make sure that you have Rust's toolchain target `arm-unknown-linux-gnueabi` as well as the GCC cross compiler for ARM CPUs installed. On **Arch** Linux, the AUR package `arm-linux-gnueabi-gcc75-linaro-bin` does the job. On **Debian**, you have to install the package `gcc-arm-linux-gnueabi`. Don't forget to tell `cargo` which compiler/linker it has to invoke. In my case, I had to edit `~/.cargo/config`: +If you want to build PbDbFixer yourself, make sure that you have Rust's toolchain target `armv7-unknown-linux-gnueabi` installed. Additionaly, you should use [PocketBook's SDK](https://github.com/pocketbook/SDK_6.3.0/tree/6.5) for being able to cross-compile specific for these devices. Don't forget to tell `cargo` which compiler/linker it has to invoke. In my case, I had to edit `~/.cargo/config.toml`: ``` -[target.arm-unknown-linux-gnueabi] -linker = "arm-linux-gnueabi-gcc" -``` -Now you can easily compile the stuff by invoking -``` -cargo build --release --target=arm-unknown-linux-gnueabi +[target.armv7-unknown-linux-gnueabi] +linker = "SDKs/PB/SDK_6.3.0/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-gcc" ``` -[^1]: User feedback \ No newline at end of file +Now you can easily compile the stuff. Note that you have to tell where the libraries are located (`LD_LIBRARY_PATH`): +``` +LD_LIBRARY_PATH="$HOME/SDKs/PB/SDK_6.3.0/SDK-B288/usr/lib" cargo build --release --target=armv7-unknown-linux-gnueabi +``` + +[^1]: User feedback