Szybet / fbink-sys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fbink-sys

Bare access to FBInk automatically made by bindgen for rust, because Plato backend is too heavy sometimes. Statically linked.

example is a binary program which shows some bare fbink function to get some idea how to use it.

This is a really bare none modular way done, someone needs to improve it in the future. Reasons below.

To use it:

  • As for the most important things, you need musl toolchain, the inkbox one at path: /home/build/qos/toolchains/armv7l-linux-musleabihf-cross/bin to automatically compile FBInk
  • Use build.sh in the example folder to compile
  • You need to copy config from .cargo to your binary project
  • For some reason compiling it dynamically produces Debug libraries for fbink and not release ones... run the command manually once, should be enough :/ or just fix this somehow help

To keep in mind:

  • FBInk is compiled with these arguments: make -j8 static MINIMAL=1 BITMAP=1 OPENTYPE=1 IMAGE=1 FONTS=1 CROSS_COMPILE=armv7l-linux-musleabihf-
  • FBInk submodule links to my repo, because I want to have control over version to fix things for this repo and links in the original FBInk repo keep getting broken

Other:

About


Languages

Language:Rust 92.9%Language:Shell 6.7%Language:C 0.4%