If you are still looking in how to setup a cross toolchain, it's very simple on debian (should work on Ubuntu too):
https://wiki.debian.org/CrossToolchains#Installation
Just use "armel" instead of "armhf" to have a working CC for Kindle.
Look at my Makefile here, you may need to change the one in the project (e.g. use arm-linux-gnueabi-gcc instead of gcc):
https://github.com/sguerrini97/gtk_s...aster/Makefile
Header files are the same across platforms afaik, but you need the libraries either from the Kindle or from the debian armel packages.
I think what knc1 suggested is a better approach, just wanted to show an easier way.
@geekmaster thank you, that repository is interesting. I tried to build SDL for kindle in the past but I had problems with the mouse (touchscreen).
Edit:
Here is what knc1 suggested
https://wiki.debian.org/QemuUserEmulation
Get the xmahjong source then
Code:
./configure --build=x86_64-linux-gnu --host=arm-linux-gnueabi
make
Binary file is "src/xmahjongg"
When I run it I get the same result as the first screenshot OP posted