To create apps for Kindle, you need a cross compiler. The easiest is to install the kox toolkit on Linux, which is really for Kindle.
For the graphics, SDL is NOT supported by Kindle. You need some software that uses GTK2 toolkit, which is quite old. Kindle uses a stripped down Linux, so you might need to remove all the code that uses other libraries (or rebuild those libraries for Linux).
Otherwise you'll have to rewrite the graphical part on FBInk.
There are a few other things to remember, like the naming standard for the windows. The instructions are on
Kindlemodding.
After, it's straightforward:
- Type
make
- Pray that it builds
- Copy the executable on the Kindle
- Launch it from
kterm
- pray that it runs
- If everything is fine, write a wrapper for KUAL and publish it. Otherwise, back to point 1.
Of course using a chrooted Linux can be a solution, it's much easier to put in place, but not sure that it will be as well adapted for Kindle touchscreen.