[PyKDE] qtpe build problem

Michael Lauer mickey at tm.informatik.uni-frankfurt.de
Sat Jan 17 17:51:00 GMT 2004


Hello,

I'm cross-building PyQt 3.9 with sip 3.9 against Qt/Embedded 2.3.7 and
Qtopia.
With the same build environment that successfully compiles PyQt 3.8/sip
3.8,
I get the following error w/ 3.9:

--------
sipqtpeQDawgNode.cpp: In function `PyObject*
sipDo_QDawg_Node_letter(PyObject*,
   PyObject*)':
sipqtpeQDawgNode.cpp:61: error: `QDawg_Node' undeclared (first use this
   function)
sipqtpeQDawgNode.cpp:61: error: (Each undeclared identifier is reported
only
   once for each function it appears in.)
sipqtpeQDawgNode.cpp:61: error: `sipCpp' undeclared (first use this
function)
sipqtpeQDawgNode.cpp: In function `PyObject*
sipNew_QDawg_Node(PyObject*,
   PyObject*)':
sipqtpeQDawgNode.cpp:202: Warnung: unused parameter `PyObject*sipArgs'
make: *** [sipqtpeQDawgNode.o] Fehler 1
--------

The error seems to be triggered by a change in naming nested classes,
e.g. see
the following diff:

--- qtpe/sipqtpeQDawgNode.cpp   2004-01-17 17:31:20.000000000 +0100
+++
/usr/local/projects/oe-packages/tmp/base/pyqt-3.9-r0/PyQt-x11-gpl-3.9/qtpe/sipqtpeQDawgNode.cpp     2004-01-17 16:46:16.000000000 +0100
@@ -1,6 +1,6 @@
 // C++ interface wrapper code.
 //
-// Generated by SIP 3.8 (build 109) on Sat Jan 17 17:31:20 2004
+// Generated by SIP 3.9 (build 154) on Sat Jan 17 16:46:16 2004
 //
 // Copyright (c) 2003
 //     Riverbank Computing Limited <info at riverbankcomputing.co.uk>
@@ -58,17 +58,17 @@
        int sipArgsParsed = 0;

        {
-               QDawg::Node *sipCpp;
+               QDawg_Node *sipCpp; <=============== line 61, where the
compiler bails out

                if
(sipParseArgs(&sipArgsParsed,sipArgs,"m",sipThisObj,sipClass_QDawg_Node,&sipCpp))
                {
-                       QChar *res;
+                       QChar *sipRes;

                        Py_BEGIN_ALLOW_THREADS
-                       res = new QChar(sipCpp ->
QDawg::Node::letter());
+                       sipRes = new QChar(sipCpp ->
QDawg::Node::letter());
                        Py_END_ALLOW_THREADS

-                       return
sipNewCppToSelf(res,sipClass_QChar,SIP_SIMPLE | SIP_PY_OWNED);
+                       return
sipNewCppToSelf(sipRes,sipClass_QChar,SIP_SIMPLE|SIP_PY_OWNED);
                }
        }

Any ideas about that?

Best regards,
-- 
:M:
--------------------------------------------------------------------------
Dipl.-Inf. Michael 'Mickey' Lauer   mickey at tm.informatik.uni-frankfurt.de 
  Raum 10b - ++49 69 798 28358       Fachbereich Informatik und Biologie  
--------------------------------------------------------------------------




More information about the PyQt mailing list