View Single Post
Old 08-11-2016, 04:02 AM   #26
sguerrini97
Enthusiast
sguerrini97 began at the beginning.
 
Posts: 27
Karma: 12
Join Date: Jan 2016
Device: KT2
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

Last edited by sguerrini97; 08-11-2016 at 04:38 AM.
sguerrini97 is offline   Reply With Quote