Discussion Board

Results 1 to 15 of 15

Thread: appufw2 patch

  1. #1
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    Hi all,

    I have to patch appuifw2 in order to build it and deploy on S60 3rd

    Index: src/pycallback.cpp
    ===================================================================
    --- src/pycallback.cpp (revision 85)
    +++ src/pycallback.cpp (working copy)
    @@ -14,7 +14,7 @@
    */

    #include <e32std.h>
    -
    +#include <e32base.h>
    #include <Python.h>
    #include <symbian_python_ext_util.h>

    @@ -28,7 +28,9 @@
    {
    PyObject *callable, *args, *pyasynccb=NULL, *ret;

    - PyEval_RestoreThread(PYTHON_TLS->thread_state);
    + //PyEval_RestoreThread(PYTHON_TLS->thread_state);
    + PyGILState_STATE state;
    + state = PyGILState_Ensure();

    // extract callable and args from the tuple
    if (PyArg_ParseTuple((PyObject *) aCallBackTuple, "OO|O", &callable, &args, &pyasynccb)) {
    Index: inc/appuifwutil.h
    ===================================================================
    --- inc/appuifwutil.h (revision 85)
    +++ inc/appuifwutil.h (working copy)
    @@ -167,6 +167,7 @@
    PyObject *ob_menu;
    PyObject *ob_body;
    PyObject *ob_title;
    + PyObject *ob_directional_pad;
    PyObject *ob_screen;
    Application_data *ob_data;
    #ifdef EKA2
    Index: group/extras.make
    ===================================================================
    --- group/extras.make (revision 85)
    +++ group/extras.make (working copy)
    @@ -22,4 +22,4 @@
    #==================================================

    ..\python\appuifw2.pyc: ..\python\appuifw2.py
    - c:\python22\python.exe -O c:\python22\lib\compileall.py ..\python
    + c:\python26\python.exe -O c:\python26\lib\compileall.py ..\python
    Index: group/appuifw2.mmp
    ===================================================================
    --- group/appuifw2.mmp (revision 85)
    +++ group/appuifw2.mmp (working copy)
    @@ -7,12 +7,13 @@
    ============================================================================
    */

    -TARGET _appuifw2.pyd
    +TARGET kf_appuifw2.pyd
    TARGETTYPE dll
    UID 0x1000008d 0xEDC67CB3

    USERINCLUDE ..\inc
    -SYSTEMINCLUDE \epoc32\include \epoc32\include\libc \epoc32\include\python
    +USERINCLUDE ..\..\pys60_src\ext\amaretto\appui\inc
    +SYSTEMINCLUDE \epoc32\include \epoc32\include\stdapis \epoc32\include\python25

    SOURCEPATH ..\src

    @@ -39,7 +40,7 @@

    nostrictdef

    -LIBRARY euser.lib python222.lib avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib egul.lib etext.lib eikcore.lib cone.lib bafl.lib gdi.lib aknskins.lib estor.lib form.lib estlib.lib
    +LIBRARY euser.lib avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib egul.lib etext.lib eikcore.lib cone.lib bafl.lib gdi.lib aknskins.lib estor.lib form.lib estlib.lib apparc.lib python25.lib

    #ifdef EKA2
    LIBRARY aknicon.lib aknskinsrv.lib aknswallpaperutils.lib

  2. #2
    Regular Contributor nirpsis's Avatar
    Join Date
    Apr 2009
    Posts
    65
    So what was the outcome? Did you manage to build it successfully? No?
    --NirpSis

    http://sites.google.com/site/nirpsis/
    http://nirpsis.blogspot.com/

  3. #3
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    great post, finally eradicated a huge number of errors in my build.
    now there doesnt appear to be any project errors, but it still fails to compile due to errors in actual python files, eg:

    error: expected constructor, destructor, or type conversion before "PyThread_init_thread"[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/python25/pythread.h]

    any ideas as to how i can resolve this?

    currently with pys60 1.9.6 files.

    btw, i'm compiling to port to PyS60 1.9.

  4. #4
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    yes, i managed to build it and test it on both emulator and phone hardware for s60 3rd

  5. #5
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    Hi the86hitman

    I'm also compiling it on Carbide C/C++ 2.0 with s60 SDK FP2 v1.1 and pys60 sdk 1.9.6

    Your quoted error seems to reflect that "PyAPI_FUNC" is not defined
    If you really have a hard time figuring it out, you could send me the full compile log.

  6. #6
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    Hi NeoJinux,

    Well done with the build. Do you have a working Appuifw2 pyd/sis now for the phone? Would be great if you could share - i'm happy to test it out

  7. #7
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    Hi the86hitman,

    I could send you the pyd and py in email, please send a personal message to me with your email.

    But it would take me a while to package the sis, so hope the pyd & py is good for you already

  8. #8
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    thanks for mailing the pyd and py file.. transferred to phone and but was surprised with the "dlopen: Load failed" error :s will try packaging tomorow and installing properly..

  9. #9
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    packaged using simplesis... now receiving the error "SystemError: dynamic module not initialized properly" ... maybe my fone doesnt like python

  10. #10
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    looked through the compile log with more detail and found it was failing to compiled due to "#include <pythread.h>"

    managed to compile the extension, installed on fone and it works!

    [announce] Appuifw2 now ported to 1.9.x with thanks to NeoJinux!

  11. #11
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    Thank you for help in testing

    I think we should all thanks arkadius for writing appuifw2. I just do the patching

    The pys60 really lack ui widget, that's make rapid prototyping real harsh.

  12. #12
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    a UI widget? how would that work?
    Few months back I was working on an alternative Python Home Screen for my E71 ("hStandby", http://my-symbian.com/forum/viewtopic.php?t=38769), with the intention of making it widget-like with customisable plugins.. The project halted because I upgraded to 1.9.x and the app relies heavily on appuifw2 and various other extentions yet to be ported. Is this what you are referring to?

  13. #13
    Registered User NeoJinux's Avatar
    Join Date
    Oct 2008
    Posts
    6
    Thank you for showing me a very nice home screen.

    What I mean is that the ui components on pys60 is very minimum, basically just listbox, text and canvas.

    Maybe I'm too used to ui framework like gtk & qt with tonnes of ui component to chose from

  14. #14
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    apologies, now I undestand what you meant. I agree, with FP1 and FP2 there are undoubtedly newer ui components - i think the pys60 appuifw/appuifw2 needs a big update

  15. #15
    Regular Contributor the86hitman's Avatar
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176
    hi everyone,

    just an update:
    Added left/right arrow functionality to Text_display control that allows page scroll up/down when scroll_by_text=True.

    extension downloadable from my site below.
    The86Hitman
    PyS60 1.9.7 on E71
    http://www.drhtailor.com/pys60

Similar Threads

  1. How to create a patch.
    By vivartpandey in forum Mobile Java General
    Replies: 19
    Last Post: 2009-07-02, 05:13
  2. Replies: 7
    Last Post: 2007-11-09, 19:36
  3. Carbide.c++ v1.2.1 Patch is Available
    By Mike Trujillo in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-06-27, 06:05
  4. eswt j9 patch on Nokia 9500 Communicator
    By inf46 in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-25, 21:37
  5. patch j9 cdc on series80
    By inf46 in forum Personal Profile
    Replies: 0
    Last Post: 2006-05-30, 10:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved