No description
Find a file
2025-09-06 22:18:02 +01: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 Little bit of cleanup 2025-09-06 21:58:48 +01:00
build.zig.zon Working hello world 2025-09-06 20:38:41 +01:00
README.md Fix instruction 2025-09-06 22:18:02 +01:00

Zig Pocketbook

Build applications for Pocketbook ereaders with Zig 0.14.x

This doesn't work yet with Zig 0.15.1

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.

As indicated above, this does not support Zig 0.15.1. Executables produced with Zig will not work! If I go further in this project, I might investigate it. Or maybe another release of Zig will fix the issue...

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");