***
@Clouds, can you try again with:
# RMKIT_KOBO_ANY=1 sh /opt/bin/remux.sh
@raisjn, I built this time like before with:
$ nano -l src/common.make
Code:
2 TARGET?=kobo
3 CROSS_TC?=arm-kobo-linux-gnueabihf
4 CXX_BIN?=arm-kobo-linux-gnueabihf-g++
5 CC_BIN?=arm-kobo-linux-gnueabihf-gcc
6 STRIP_BIN?=arm-kobo-linux-gnueabihf-strip
7 CPP_FLAGS=-pthread -lpthread -fdata-sections -ffunction-sections -Wno-narrowing -Wl,--gc-sections
$ nano -l src/rmkit/input/events.cpy
Code:
187 rotation := util::rotation::get()
188 invert_y = false
189 invert_x = false
190 swap_xy = false
191 if getenv("INV_Y") != NULL:
192 invert_y = true
193 if getenv("INV_X") != NULL:
194 invert_x = true
195 if getenv("SWP_XY") != NULL:
196 swap_xy = true
197 if getenv("ROT_4") != NULL:
198 rotation %= 4
199 switch version:
$ ARCH=kobo FBINK=1 make
Now, copying src/build/remux to /mnt/onboard/.adds/rmkit/bin/apps/ I get:
# sh /opt/bin/remux.sh
[FBInk] Detected a Kobo Clara HD (376 => Nova @ Mark 7)
[FBInk] Enabled Kobo Mark 7 quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 300 dpi
[FBInk] Variable fb info: 1072x1448, 32bpp @ rotation: 3 (Counter Clockwise, 270°)
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 4352 bytes
[FBInk] Canonical rotation: 0 (Upright, 0°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Vertical fit isn't perfect, shifting rows down by 4 pixels
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
W: 1072 H: 1448 S: 1088
RUNNING ON CLARA HD
OPENING /dev/input/event0 AS BUTTONS
OPENING /dev/input/event1 AS TOUCH
ERROR OPENING INPUT DEVICE /dev/input/event2
ERROR OPENING INPUT DEVICE /dev/input/event3
ERROR OPENING INPUT DEVICE /dev/input/event4
READING CONFIG FROM /home/root/.config/remux/remux.conf
No such file or directory
No such file or directory
No such file or directory
memory stats took 0.029685
CURRENT APP IS Nickel
RESETTING BPP TO 32
SETTING SCREEN DEPTH 32
STARTING SUSPEND THREAD
STARTING FIFO THREAD
LAST SUSPEND LOOP WAS 1706577083 AGO, RESETTING IDLE TIMER
SETTING UP GESTURES
SETTING LAUNCH GESTURES TO DEFAULT
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 0 0 107 1448
direction: up
distance:
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 964 0 1072 1448
direction: up
distance:
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 0 0 107 1448
direction: down
distance:
ADDED SWIPE GESTURE:
command:
gesture: swipe
fingers:
min_events:
zone: 964 0 1072 1448
direction: down
distance:
Now I can swipe to launch menu!
Now let's see if @Clouds can run input_demo...
***
*Note:
Unfortunately needed to add -Wno-narrowing to CPP_FLAGS to avoid errors:
In file included from rmkit/src/.remux_cpp/launcher.cpp:2:
rmkit/src/.remux_cpp/launcher.h: In member function 'input_event* App::build_touch_flood()':
rmkit/src/.remux_cpp/launcher.h:788:75: error: narrowing conversion of '-3' from 'int' to '__u16' {aka 'short unsigned int'} [-Wnarrowing]
788 | ev[i++] = input_event{ type:EV_ABS, code:TOUCH_FLOOD_EVENT, value:1 };
| ^
rmkit/src/.remux_cpp/launcher.h:790:75: error: narrowing conversion of '-3' from 'int' to '__u16' {aka 'short unsigned int'} [-Wnarrowing]
790 | ev[i++] = input_event{ type:EV_ABS, code:TOUCH_FLOOD_EVENT, value:2 };
| ^
Couldn't compile rmkit/src/.remux_cpp/launcher.cpp aborting
***