Update description for compiling the stuff
This commit is contained in:
parent
85f7dd0e45
commit
18873c4b3e
1 changed files with 9 additions and 8 deletions
17
README.md
17
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue