Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On Sunday 05 November 2006 15:03:26 +, Phil Thompson wrote: > I meant that there is a bug in Qt prior to v4.2 in that > QX11EmbedContainer::error() and QX11EmbedWidget::error() are declared in > the .h file, described in the documentation, but not implemented in the > .cpp file. OK. I see why I was confused. I've never built PyQt4 with support for those classes against Qt 4.1 or earlier. David ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On 11/5/06, David Boddie <[EMAIL PROTECTED]> wrote: http://blogs.qtdeveloper.net/archives/2005/08/10/playing-around-with-xembed/In theory, then, any recent PyQt4 snapshot should work without problems unless the underlying QtGui library is built without these classes. I'm notsure if that's what Phil meant in his reply.I found the blog post and tried to run the application. Although it built fine it wouldn't run, but didn't give me any useful error messages. I tried running with both valgrind and gdb and couldn't find anything wrong, it just hung with displaying anything. I have no idea why my copy of QtGui might have been built without those classes...Andrew ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On Sunday 05 November 2006 2:35 pm, David Boddie wrote: > On Saturday 04 November 2006 12:35, Andrew Wilkinson wrote: > > I had been trying to find out when the QX11EmbedWidget class was added, > > but I couldn't find it. I had to also edit sip/QtGui/qapplication.sip, > > but once I'd done that it compiles and runs fine. > > I think I was quite confused about when it was introduced, so ignore my > comment about availability in versions before Qt 4.2. I seem to remember > that it was introduced in Qt 4.0: > > http://blogs.qtdeveloper.net/archives/2005/08/10/playing-around-with-xembed >/ > > In theory, then, any recent PyQt4 snapshot should work without problems > unless the underlying QtGui library is built without these classes. I'm not > sure if that's what Phil meant in his reply. I meant that there is a bug in Qt prior to v4.2 in that QX11EmbedContainer::error() and QX11EmbedWidget::error() are declared in the .h file, described in the documentation, but not implemented in the .cpp file. Phil ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On Saturday 04 November 2006 12:35, Andrew Wilkinson wrote: > I had been trying to find out when the QX11EmbedWidget class was added, but > I couldn't find it. I had to also edit sip/QtGui/qapplication.sip, but once > I'd done that it compiles and runs fine. I think I was quite confused about when it was introduced, so ignore my comment about availability in versions before Qt 4.2. I seem to remember that it was introduced in Qt 4.0: http://blogs.qtdeveloper.net/archives/2005/08/10/playing-around-with-xembed/ In theory, then, any recent PyQt4 snapshot should work without problems unless the underlying QtGui library is built without these classes. I'm not sure if that's what Phil meant in his reply. David ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On Saturday 04 November 2006 2:08 am, David Boddie wrote: > On Fri, 03 Nov 2006 14:09:27 +0100, Xavier Décoret wrote: > > Andrew Wilkinson a écrit : > > > Traceback (most recent call last): > > > File "", line 1, in > > > ImportError: /usr/lib64/python2.5/site-packages/PyQt4/QtGui.so: > > > undefined symbol: _ZNK18QX11EmbedContainer5errorEv > > > > It is not the answer to your question, but I use the occasion to give an > > poorly known trick with gcc: the utility c++filt lets you "unmangle" > > symbol names to get the "human readable" name of the missing symbol. In > > your case "c++filt _ZNK18QX11EmbedContainer5errorEv" returns > > "QX11EmbedContainer::error() const" so you know which function is > > missing from the compilation units. > > It's very close to the answer. It looks like QX11EmbedContainer and > QX11EmbedWidget have been included unconditionally when they should > only be included if you're building against Qt 4.2. > > Comment out or remove this line in sip/QtGui/QtGuimod.sip: > > %Include qx11embed_x11.sip > > Or, if you're not in a hurry, you could just wait for Phil to fix it in a > later snapshot. That way, you'll be able to use the same source package to > build libraries for use with Qt 4.1 and Qt 4.2. Hmm, documented in Qt 4.1, but not implemented. Phil ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On 11/4/06, David Boddie <[EMAIL PROTECTED]> wrote: QX11EmbedWidget have been included unconditionally when they shouldonly be included if you're building against Qt 4.2.Comment out or remove this line in sip/QtGui/QtGuimod.sip:%Include qx11embed_x11.sip Or, if you're not in a hurry, you could just wait for Phil to fix it in alater snapshot. That way, you'll be able to use the same source package tobuild libraries for use with Qt 4.1 and Qt 4.2. I had been trying to find out when the QX11EmbedWidget class was added, but I couldn't find it. I had to also edit sip/QtGui/qapplication.sip, but once I'd done that it compiles and runs fine.Thanks for your help, Andrew ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
On Fri, 03 Nov 2006 14:09:27 +0100, Xavier Décoret wrote: > Andrew Wilkinson a écrit : > > Traceback (most recent call last): > > File "", line 1, in > > ImportError: /usr/lib64/python2.5/site-packages/PyQt4/QtGui.so: > > undefined symbol: _ZNK18QX11EmbedContainer5errorEv > > It is not the answer to your question, but I use the occasion to give an > poorly known trick with gcc: the utility c++filt lets you "unmangle" > symbol names to get the "human readable" name of the missing symbol. In > your case "c++filt _ZNK18QX11EmbedContainer5errorEv" returns > "QX11EmbedContainer::error() const" so you know which function is > missing from the compilation units. It's very close to the answer. It looks like QX11EmbedContainer and QX11EmbedWidget have been included unconditionally when they should only be included if you're building against Qt 4.2. Comment out or remove this line in sip/QtGui/QtGuimod.sip: %Include qx11embed_x11.sip Or, if you're not in a hurry, you could just wait for Phil to fix it in a later snapshot. That way, you'll be able to use the same source package to build libraries for use with Qt 4.1 and Qt 4.2. David ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv
Andrew Wilkinson a écrit : Hi, I can compile the latest snapshot of PyQt fine, however when I try to import it I get the following error... Python 2.5 (r25:51908, Oct 25 2006, 09:55:50) [GCC 4.1.1 (Gentoo 4.1.1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtGui Traceback (most recent call last): File "", line 1, in ImportError: /usr/lib64/python2.5/site-packages/PyQt4/QtGui.so: undefined symbol: _ZNK18QX11EmbedContainer5errorEv It is not the answer to your question, but I use the occasion to give an poorly known trick with gcc: the utility c++filt lets you "unmangle" symbol names to get the "human readable" name of the missing symbol. In your case "c++filt _ZNK18QX11EmbedContainer5errorEv" returns "QX11EmbedContainer::error() const" so you know which function is missing from the compilation units. Good luck. >>> I'm running qt-4.1.4. Does anyone know what my problem is? Regards, Andrew ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde