Info: How to make a standalone application (using py2sis)
For PC only: (Symbian does not provide SDK's for MAC, so you can not do this on MAC) First of all you need to have the following software installed installed on your machine: A. Symbian SDK B. Python plug-in for the SDK To get the A. Symbian SDK, go to www.forum.nokia.com/main/0,,034-4,00.html After that you need to install B. the Python plugin Python_for_2ndEd_SDK.exe Now you are set to create your standalone application (creating a *.sis file).
Here is how you make a simple standalone app - a *.SIS file - out of your python script: On your PC create a folder named e.g. myapps (C:\myapps) Open a command line terminal e.g. via windows start -> Run -> type in: cmd On the command line terminal go to the myapps folder by typing: cd C:\myapps On the command line terminal type: The result is a file called myfirst.sis found in your C:\myapp folder. This is your standalone application which you can push to your phone, install and run. You can test the making of a standalone app using this example test.py script.
How to make a standalone app including own icons: You can use an own icon (icon1) for your application on the desktop of the phone as well as an own image (icon2) on the top of the canvas when running your app (instead of the snake). In order to create these icons you can use e.g. a graphic editor like photoshop or fireworks: icon1 for the desktop: icon2 for the top of the canvas when running your app: Note:
Now you need to create an mbm file with your created *.bmp files using a tool called bmconv that came with the Symbian SDK intallation. You can do this e.g. by using the command line terminal: Save first all your created *.bmp files to C:\myapps On the command line terminal go to the myapps folder by typing: cd C:\myapps On the command line terminal type: The result is your testapp.mbm file. Hint: make sure you add c24 as 24bit colour picture in front of the icon.bmp and leave no space inbetween in the command line terminal.
Now you need to create an *.aif file out of your created testapp.mbm file using a tool called aif tool that came as well with the Symbian SDK intallation. But in order to do that you need to have a *.rss file. You can use this myrssfile.rss file and modify it (e.g. with notepad) according to your own app (modifying instructions are inside the *.rss file). Save the myrssfile.rss file also to you myapps folder. Create the *.aif file e.g. by typing on the command line terminal: Example of the ready myrssfile.aif As a next step you need to create a *.sis file as a substep, type: As a result you find inside your myapps folder a folder called temp, in which you find a mysfirst.pkg file. Raw example: mysfirst.pkg Edit the mysfirst.pkg file (e.g. with notepad) according the instructions inside the file. Save the mysfirst.pkg file to your myapps folder. Create now your final myfirst.sis file by using this time the makesis tool: Fina example: myfirst.sis
How to make a *.SIS file that includes the python interpreter, so you can ship your app to people who do not have the python interpreter installed previously:
Copy the Python interpreter file pythonForSeries60.sis into myapps directory, then go into temp directory and edit the .pkg file (e.g. with notepad): add at the end a line Add the UID of each of the SIS file that you add e.g. of the pythonForSeries60.sis (it is ....) (if you do not know the UID of an .SIS file you need to open the .sis file in an HEX-editor (e.g. ... and the first 4 HEX strings are it) @"PythonForSeries60.sis",(0x10201510) save the myfirstwpy.pkg file Example of edited myfirstwpy.pkg file run:
In the same way as you included the python interpreter, you can also include other *.sis files e.g. of python extensions that other people have created and of which you want to use some functionalities.
Python Plug-ins for the Symbian SDK: PythonForSeries60_1_2_for_1stEd_FP1_SDK.zip PythonForSeries60_1_2_for_2ndEd_FP1_SDK.zip PythonForSeries60_1_2_for_2ndEd_FP2_SDK.zip PythonForSeries60_1_2_for_2ndEd_FP3_SDK.zip
Few helpful links: http://www.newlc.com/article.php3?id_article=197
http://www.newlc.com/recherche.php3?recherche=bmconv
|
|
|
|