NiLuJe / FBInk

FrameBuffer eInker, a small tool & library to print text & images to an eInk Linux framebuffer

Home Page:https://www.mobileread.com/forums/showthread.php?t=299110

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation Issue

codeeleven0 opened this issue · comments

cc fails at gettimeofday(&ev.time, NULL); with error fbink_button_scan.h:70:41: error: 'struct input_event' has no member named 'time'. I am using a Kobo Aura Second Edition and it doesn't have any hardware buttons. Is there any way to disable the compilation of this file?

Just solved by editing the Makefile.

commented

You also appear to be using a really old toolchain (or at least really, really old kernel headers), which might not be a great idea.

c.f., https://github.com/koreader/koxtoolchain

Because, yeah, while, button_scan is essentially deprecated here, not being able to deal with input_event will be... problematic if you ever need to do any kind of input handling ;o).

Any reason you are wanting to add a fork instead of upstreaming the changes behind a flag similar to the KINDLE, LEGACY, POCKETBOOK, CERVANTES, and REMARKABLE flags?

Any reason you are wanting to add a fork instead of upstreaming the changes behind a flag similar to the KINDLE, LEGACY, POCKETBOOK, CERVANTES, and REMARKABLE flags?

I want to make things easier.
I am creating an install-script for installing Alpine and a minimal desktop on my Kobo Aura SE. Everytime I try it I don't want to hassle with configs, so I created forks, which will help me a lot.

commented

There's no need to hack around it, the Makefile is already modular (c.f., https://github.com/NiLuJe/FBInk#how-do-i-build-it).

i.e., make sharedlib KOBO=1 SHARED=1 MINIMAL=1 will probably be enough for xdamage, and you'll get a (much) smaller library to boot. (If in doubt, pass DRAW=1, too, but IIRC, it just needs to be able to refresh).

commented

That sure sounds easier than just updating one line...

diff --git a/Makefile b/Makefile
index 8d77bbb..c99c0ed 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,3 @@
 all:
-       (cd FBInk; make shared KOBO=1)
+       make -C FBInk sharedlib SHARED=1 KOBO=1 MINIMAL=1
        gcc -LFBInk/Release/ -IFBInk main.c -o fbink_xdamage -lX11 -lXext -lXdamage -lXfixes -lfbink
commented

And as far as xdamage is concerned, schuhumi/fbink-xdamage@de2e6de may be relevant to your interests ;).

I am making a shortcut for an automated script in NickelMenu. So, it would be easier to run and repos are up to date.