
Originally Posted by
taowu
I am trying to compile a Python script to SIS file. I have Carbide C++ express running (i.e., compiled the helloworldbasic example), and followed the instructions in Py2SIS_3rdED_v0_1_README.txt.
The following error occurs when I try to compile as instructed (I copied the snake.py to the py2sis directory; the error is the same for my own script):
================================
S:\py138\src\py2sis>python py2sis.py snake.py --uid=0x01234567 --sdk30 --caps="NetworkServices LocalServices ReadUserData WriteUserData" --leavetemp
Creating SIS for SDK3.0 and later
Processing template S:\py138\src\py2sis\build\Icons_aif.mk.template
Processing template S:\py138\src\py2sis\build\PyTest.cpp.template
Processing template S:\py138\src\py2sis\build\PyTest.rss.template
Processing template S:\py138\src\py2sis\build\PyTest_reg.rss.template
Processing template S:\py138\src\py2sis\build\app.mmp.template
Compiling...
Done.
ERROR [Errno 2] No such file or directory: '\\Epoc32\\release\\GCCE\\UREL\\snake_0x01234567.exe'
Please verify that you can compile the "helloworldbasic" from command line and as a device target:
1) cd to "V:\S60Ex\helloworldbasic\group" (the drive might be different according to your subst-commands)
2) Give command:
Code:
V:\S60Ex\helloworldbasic\group>bldmake bldfiles
WARNING: Cannot determine the version of the RVCT Compiler.
WARNING: When building for ARMV5 platform Compiler RVCT2.2 or later is required.
V:\S60Ex\helloworldbasic\group>
3) Give command:
Code:
V:\S60Ex\helloworldbasic\group>abld build gcce urel
make -r -f "\EPOC32\BUILD\S60Ex\helloworldbasic\group\EXPORT.make"
....
This works if you get no error messages (warnings are ok) - if you get error messages please post those here.
(You might as well compile the "helloworldbasic" for your emulator, just give command "abld build winscw udeb". You should now have a "HelloWorld"-logo in your emulator (in folder "Installations"))
The proper output from py2sis should be:
Code:
V:\src\py2sis>python py2sis.py snake.py --uid=0x01234567 --sdk30 --caps="Network
Services LocalServices ReadUserData WriteUserData" --leavetemp
Creating SIS for SDK3.0 and later
Processing template V:\src\py2sis\build\Icons_aif.mk.template
Processing template V:\src\py2sis\build\PyTest.cpp.template
Processing template V:\src\py2sis\build\PyTest.rss.template
Processing template V:\src\py2sis\build\PyTest_reg.rss.template
Processing template V:\src\py2sis\build\app.mmp.template
Compiling...
Done.
makesis V:\src\py2sis\temp\snake.pkg V:\src\py2sis\snake.sis
Processing V:\src\py2sis\temp\snake.pkg...
Unique vendor name not found.
Created V:\src\py2sis\snake.sis
Note: Sign the created SIS file prior installation (tool "SignSIS")
V:\src\py2sis>
My subst is:
Code:
V:\src\py2sis>subst
V:\: => C:\Symbian\9.1\S60_3rd