Skip to content

OliverHaag/rust-inkview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-inkview

Rust-bindings for the PocketBook InkView library

Setup

Clone https://github.com/pocketbook/SDK_6.3.0/tree/5.19 and set it up as described.

Set target and library directory via .cargo/config, replacing $SDK_ROOT_DIR accordingly:

[build]
target = "arm-unknown-linux-gnueabi"

[target.arm-unknown-linux-gnueabi]
linker = "$SDK_ROOT_DIR/SDK-B288/usr/bin/arm-obreey-linux-gnueabi-clang"
rustflags = [
	"-C", "target-cpu=cortex-a7",
	"-L", "$SDK_ROOT_DIR/SDK-B288/usr/arm-obreey-linux-gnueabi/sysroot/usr/local/lib/"
]

Set environment variables for bindgen, replacing $SDK_ROOT_DIR accordingly:

$ export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=$SDK_ROOT_DIR/SDK-B288/usr/arm-obreey-linux-gnueabi/sysroot/ -I$SDK_ROOT_DIR/SDK-B288/usr/arm-obreey-linux-gnueabi/sysroot/usr/include/freetype2"

Building

For build with debugging info:

$ cargo build --release

For optimized build:

$ RUSTFLAGS="-C link-arg=-s" cargo build --release

Using

Add inkview as dependency to your Crate.toml:

[dependencies]
inkview = { path = "path/to/inkview", version = "0.1" }

About

Rust-bindings for the PocketBook Inkview library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages