@coplate
Sorry for the late reply. good to see you got everything working. My setup is a little different as I use Amazon's official toolchain. There is a HOWTO included in the source so just follow the instruction to install. To compile invoke the gcc like
~/opt/cross-gcc-linaro/bin/arm-linux-gnueabi-gcc xxx.c
To link X libs, first make sure the code compile in host, then copy headers from host's /usr/include/X11 to ~/opt/cross-gcc-linaro/arm-linux-gnueabi/usr/include/X11 and kindle's lib files(from a live system or extract from update image) to ~/opt/cross-gcc-linaro/arm-linux-gnueabi/usr/lib
A full arm chroot can do much more and my setup is kinda limited though.
---------------------
I can't get swipe working with XTest by simulating mouse button pressing, moving and button releasing, however it can be done with input_event and writing to kindle's touchscreen device. To do so, run evtest to get the events then reproduce the sequence.
XTest works only in native reader(that's how xdotool works) and input_event works on both native reader and KOReader.
Attachment shows few different ways to simulate input. Hope it helps.
|