No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rodolpheh 2604aaf039 Test with more recent version of Zig
It seems to work. Also clarified which target works.
2025-12-31 15:46:18 +00:00
src Little bit of cleanup 2025-09-06 21:58:48 +01:00
.gitignore Working hello world 2025-09-06 20:38:41 +01:00
build.zig Test with more recent version of Zig 2025-12-31 15:46:18 +00:00
build.zig.zon Working hello world 2025-09-06 20:38:41 +01:00
README.md Test with more recent version of Zig 2025-12-31 15:46:18 +00:00

Zig Pocketbook

Build applications for Pocketbook ereaders with Zig 0.14.x+

Introduction

The source of the SDK can be found on GitHub. This is using the version 6.5 of the SDK because the version 6.8 is released in a 7z file that the Zig build system cannot handle yet.

For now, an example is built with the module. This example is a manual rewrite in Zig of an hello world example by Pascal Martin.

Usage

Not very tested yet, but you should be able to add this as a dependency to your project:

zig fetch --save=pb git+https://forge.lunai.re/rodolphe/zig-pocketbook.zig

And in your build.zig:

const pb_dep = b.dependency("pb", .{});
const inkview = pb_dep.module("inkview");

// Assuming your executable's module is named exe_mod
exe_mod.addModule("inkview", inkview);

From there you should be able to use the module in your code:

const inkview = @import("inkview");

Please note that it is not possible to build an application for an OS other than Linux or a CPU architecture other than ARM. On my reader, a Pocketbook Touch HD3, the correct triplet to use for the target is arm-linux-gnueabi.2.23.