Custom Search

Tuesday, December 15, 2009

How to set up the PyS60 Emulator in Windows

How to set up the PyS60 environment in Windows PC
Installing PyS60 Emulator

First download following Tools
======================

1) Download S60_3rd_Edition_SDK_Feature_Pack_2. (455MB)
http://www.forum.nokia.com/info/sw.nokia.com/id/807ec36d-0a8e-4bda-8e10-4d5e5bb4764a/S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en.zip.html

http://sw.nokia.com/id/807ec36d-0a8e-4bda-8e10-4d5e5bb4764a/S60_3rd_Edition_SDK_Feature_Pack_2_v1_1_en.zip

2) Download ActivePerl. (8MB)
http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.635-MSWin32-x86.msi


3) Download PythonForS60 _1_4_5_SDK_3rdEdFP1.zip (12MB)
http://sourceforge.net/projects/pys60/files/

# Visit http://www.forum.nokia.com/ for latest version of above tools.

Optional Tool
-------------------
1) http://www.java.com/en/download/manual.jsp
To install the 3rd Edition SDK (and possibly previous versions) you need to have installed Active Perl and have a newest Java Runtime installed as well JRE


Installation Order
=============

1) First install ActivePerl

2) Install S60_3rd_Edition_SDK_Feature_Pack to C:\S60\

3) Extract PythonForS60_1_4_5_SDK_3rdEdFP1.zip. Then you get another archived file sdk_files.zip.Extract it again and you get a directory named "epoc32".
Copy contents in the directory "epoc32" into "C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\"
Then probably Windows asks to replace the already existing folder 'epoc32'. Click yes.


Start the S60 Emulator
=================

Start the S60 Emulator: "All Programs ---> S60 Developer Tools ---> 3rd Edition FP2 SDK ---> v1.1 ---> Emulator".

# Wait..... It takes a while to start up the first time your firewall may pick up the epoc.exe process asking for server rights as well, that is to be expected. Eventually you will see the main Phone screen and Icons, you can watch the epoc.exe process bouncing about if you get bored while you wait, don't be tempted to click on the power switch of the phone until all the icons are there, just wait.

# Click on the Phone Menu key on the left, use the cursor keys or click on the phone GUI to highlight Installations, click on the center phone button, highlight the Python application, Click Open, you should get a splash screen giving the version.

# In Phone Select icon 'Installations" using down Key (In keyboard or Phone), then select icon "python", then you will get python screen.

# Click on Options > Run Script ball.py, the demo should run!

# The sample scripts are located in "C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\winscw\c\python" this is where you can put your scripts and they will appear in the Emulator.

# You can create a sub directory called "lib" under the python directory and this will get picked up in the search path if you have modules to add.

# From experience so far, although the Emulator picks up new files without having to restart the whole emulator I have found it best to restart the Python application to make sure changes to existing scripts are picked up.

===================================

No comments:

Post a Comment