View Single Post
Old 05-20-2012, 12:35 PM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by koziej View Post
Hello.

I want to port Anki (http://ankisrs.net/) to Kindle Touch.

I have good experience with linux / java / python, but Kindle is new to me, so I would like if you, fellow developers, forsee any major problems which could render this effort impossible.

Anki's engine for storing and manipulating flashcards is written in python, backed by a sqlite database. I'm thinking about following steps:

1. Cross compile pysqlite2 [sqlite api - native python module]
2. run Jython on kindle's jvm
3. Create a Kindlet embedding Jython, with a simple GUI for reviewing flashcards.

Comments, tips, etc appreciated,

Regards,

m.
http://ankisrs.net/index.html#linux
And after downloading, follow the directions in the enclosed README file just like that page section directs.

It isn't a compiled (to native binary) program, just a python program.
So you should not have the problems associated with cross-compiling.

If you find problems with meeting the required dependances on your selected Kindle model, just update this thread with your problems/progress.

The base dependances are listed as:
Quote:
Prerequisites for Linux/FreeBSD/etc:

- a recent Python (2.4 should be fine)
- python-qt/pyqt 4.4+
- sqlalchemy 0.4.3+
- simplejson 1.7.3+
- pysqlite2 1.3+ or python2.5
Some of which you may have to cross-compile for the Kindle or locate armel binaries that you can use on the Kindle.

This recent thread might help getting the qt libraries working on your Kindle:
https://www.mobileread.com/forums/sho...d.php?t=178716

This application is GPL-v3 licensed.

Last edited by knc1; 05-20-2012 at 12:43 PM.
knc1 is offline   Reply With Quote