Random ...
 
December 2017
S M T W T F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Tags ...
Links



Linux++:::: Python in your phone: pys60 runs amuk!
Posted at 17.Jan,2009 14:06  Comments 0 / Trackbacks 0 / Like this post!
Technorati tag(s):

It's amazing where one can find python. One of the many places is on a nokia.

I know it's been there a while, but I only got a hold of an S60 phone recently.

Here's how I got python running on my s60:

  • get the necessary .sis files from sf.net (v 1.4.5 based on python 2.2.2) or from maemo.org (v 1.9.0; which is still beta and no sdk available)
  • install the downloaded python_version.sis and pythonshell_version.sis, and choose c: or nokia memory to install both python and python shell. Installing any other place will not launch your sis files generated by ensymble. The pys60 devs are looking at this, methinks.

Getting the s60 emulator running. Note, the s60 emulator only runs on windows.:

  • get and install active perl; required to install the s60 sdk
  • get and install the s60 sdk
  • get carbide (optional)
  • get pys60 sdk Only v 1.4.5 available currently
  • extract pys60 sdk, then extract all files in sdk_files.zip to C:\Symbian\9.1\S60_3rd
  • All our python scripts should be in C:\Symbian\9.1\S60_3rd\Epoc32\winscw\c\python.
  • All python libs/modules should be in C:\Symbian\9.1\S60_3rd\Epoc32\winscw\c\resource

We can package our python script to .sis using ensymble

However, ensymble only work with python 1.9.0, afaik. I tried ensymble with pys60-1.4.5 and things didn't turn out ok. Probably, the problem was caused by me installing pys60 on the memory card. Haven't had time to check since I've already got pys60-1.9.0 installed and my simple .sis works ok.

Ensymble requires openssl, so get openssl+ libs - to sign http://www.stunnel.org/download/binaries.html

Now, I need a project; a small one so I can finish it :P. Probably a todo app.

Some screenshots from the emulator, and from the app at my s60:

. . . . . . . .


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/223/tbping 

Comments
Post a comment