View Single Post
Old 09-19-2016, 04:14 PM   #65
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
Quote:
Originally Posted by sguerrini97 View Post
If you are still looking in how to setup a cross toolchain, it's very simple on debian (should work on Ubuntu too):
Spoiler:
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.

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
Would you mind explaining quickly the comparison of/positives and negatives of:
1. installing the cross compiler toolchain,
2. using qemu and compiling it on the (emulated) device.

You say you think knc1's idea of using qemu is better, why I don't understand why.
I want to build some code for kindle, but I'm not sure which method to follow.

I really appreciate it, thank you!
zxczxc is offline   Reply With Quote