×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    extending python on series60

    hi

    i m trying to extend python on symbian... i am using SDK 1.2, following err mesg is coming
    fatal error U1077: ' cmd.exe' : return code '0x1'
    fatal error U1077: ' cmd.exe' : return code '0x2'

    unable to figure out what is the problem and how to overcome from it....

    thnx in advance

    vipul

  2. #2
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: extending python on series60

    hi - please tell what commands you are running, and the whole error report.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    my code is simply printing some value... here is code...
    static PyObject *mymodule_show() {
    // printing some value
    }
    static PyMethodDef mymoduleMethods [] = {
    {"show",mymodule_show,METH_VARARGS,"show value"}
    {NULL,NULL,NULL}
    };
    DL_EXPORT(void) initmymodule(void) {
    (void)Py_InitModule("mymodule",mymoduleMethods);
    }

    i want to build dll file, so that i can use it as a module
    its creating the problem::

    \Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERIES60EX\VIPUL\VIPUL

    \ARMI\VIPUL.def(3) : initvipul__Fv @1

    ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\RELEASE\ARMI\UREL\EDLL.LIB(UP_DLL.o)(

    .text+0x0):Up_dll.cpp: undefined reference to `E32Dll(TDllReason)'

    ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\RELEASE\ARMI\UREL\EDLL.LIB(UP_DLL.o)(

    .text+0x0):Up_dll.cpp: relocation truncated to fit: ARM_26 E32Dll(TDllReason)

    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'

    Stop.

    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'

    Stop.

    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI

    ES60EX\VIPUL\ARMI.make" FINAL CFG=UREL VERBOSE=-s

  4. #4
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: extending python on series60

    Are you missing e32dll definition? From s60/python extension example (elemlist.cpp):
    Code:
    /*******************************************************
     This function is mandatory in Symbian DLL's. */
    
    GLDEF_C TInt E32Dll(TDllReason)
    {
      return KErrNone;
    }

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    i have included e32dll definition...
    now the following error(fatal) is coming....

    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
    Stop.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
    Stop.

  6. #6
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: extending python on series60

    Quote Originally Posted by vipul.mobiance
    i have included e32dll definition...
    now the following error(fatal) is coming....

    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
    Stop.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
    Stop.
    1) Try to compile the example extension coming with Python for S60 ("C:\Nokia\Tools\Python_for_Series_60\examples\extension_example")
    2) If the above compiles with your configuration, post the full error report you are receiving when trying to compile your extension (please include your ".mmp" file etc.).

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    i already tried the extension example its also creating the similar problem

    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
    Stop.

    my mmp file::

    TARGET vipul.pyd
    TARGETTYPE dll
    UID 0
    TARGETPATH \system\libs
    SOURCE mymodule.cpp

    SYSTEMINCLUDE \epoc32\include
    SYSTEMINCLUDE \epoc32\include\libc

    USERINCLUDE \python-port-s60\symbian_python\Symbian
    USERINCLUDE \python-port-s60\symbian_python\Include
    USERINCLUDE \python-port-s60\symbian_python\Python

    LIBRARY python222.lib
    LIBRARY euser.lib
    LIBRARY estlib.lib

    EPOCSTACKSIZE 65536

  8. #8
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: extending python on series60

    Quote Originally Posted by vipul.mobiance
    i already tried the extension example its also creating the similar problem
    Please provide the full error report.

    And notice that you should first succeed in the example extension compilation - it does not make sense to start developing our own extensions prior that.

  9. #9
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    now example extension program is building properly...
    but my own extension is not creating same error(fatal)
    Last edited by vipul.mobiance; 2005-12-07 at 11:33.

  10. #10
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    following mesg is coming::
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\ARMI.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl -D \SYMBIAN\6.1\SERIES60\SERIES60EX\VIPUL\VIPUL ARMI
    WARNING: Frozen .DEF file \SYMBIAN\6.1\SERIES60\SERIES60EX\BMARM\VIPUL.FRZ not f
    ound - project not frozen
    In file included from ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\INCLUDE\PYTHON-
    PORT-S60\SYMBIAN_PYTHON\INCLUDE\longobject.h:10,
    from ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\INCLUDE\PYTHON-
    PORT-S60\SYMBIAN_PYTHON\INCLUDE\Python.h:73,
    from ..\..\..\..\..\SYMBIAN\6.1\SERIES60\SERIES60EX\VIPUL\VIPUL
    .CPP:1:
    ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\INCLUDE\e32def.h:83: warning: `NULL'
    redefined
    ..\..\..\..\..\Symbian\6.1\Series60\EPOC32\INCLUDE\LIBC\stdio.h:82: warning: thi
    s is the location of the previous definition
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\ARMI.make" LIBRARY VERBOSE=-s
    nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SER
    IES60\SERIES60EX\VIPUL\VIPUL\ARMI\VIPUL.ARMI" LIBRARY
    WARNING: Not attempting to create any import libraries.
    When exports are frozen in "\SYMBIAN\6.1\SERIES60\SERIES60EX\BMARM\VIPUL.FRZ", r
    egenerate Makefile.
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\ARMI.make" RESOURCE CFG=UREL VERBOSE=-s
    nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SER
    IES60\SERIES60EX\VIPUL\VIPUL\ARMI\VIPUL.ARMI" RESOURCEUREL
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\ARMI.make" TARGET CFG=UREL VERBOSE=-s
    nmake -nologo -s -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SER
    IES60\SERIES60EX\VIPUL\VIPUL\ARMI\VIPUL.ARMI" UREL
    MAKEDEF WARNING: 1 export(s) not yet Frozen:
    \Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERIES60EX\VIPUL\VIPUL
    \ARMI\VIPUL.def(3) : initvipul @1

    PETRAN - PE file preprocessor V01.00 (Build 175)
    Copyright (c) 1996-2001 Symbian Ltd.
    ERROR: Dll 'VIPUL.PYD' has initialised data.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xffffff
    fe'
    Stop.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
    Stop.
    nmake -nologo -f "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERI
    ES60EX\VIPUL\ARMI.make" FINAL CFG=UREL VERBOSE=-s

  11. #11
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209

    Re: extending python on series60

    Quote Originally Posted by vipul.mobiance
    ERROR: Dll 'VIPUL.PYD' has initialised data.
    See:

    http://www3.symbian.com/faq.nsf/0/CA...2?OpenDocument
    http://www.newlc.com/article.php3?id_article=529

    This might work for searching the globals (copied from some thread in NewLC):

    """
    in your build directory (e.g. ...\epoc32\build\...\udeb) try:

    nm *.o > temp
    find /I " d " temp > globals.txt
    find /I " b " temp >> globals.txt
    find /I " g " temp >> globals.txt
    """

  12. #12
    Registered User
    Join Date
    Dec 2005
    Posts
    13

    Re: extending python on series60

    thnx
    this thing have work...

Similar Threads

  1. Python for Series 60 released on Forum Nokia!
    By eriksmartt in forum Symbian
    Replies: 5
    Last Post: 2009-07-14, 17:00
  2. Cryptography in Python series 60
    By tonino12345 in forum Symbian
    Replies: 12
    Last Post: 2007-11-29, 20:51
  3. problem in extending python
    By vipul.mobiance in forum Symbian
    Replies: 3
    Last Post: 2005-12-02, 13:06
  4. Python C++ Extension with Callback crashing
    By diggerdeep in forum Symbian
    Replies: 2
    Last Post: 2005-11-10, 16:33
  5. Replies: 0
    Last Post: 2004-05-26, 15:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •