Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv

2006-11-03 Thread David Boddie
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


[PyKDE] Compilation of snapshot

2006-11-03 Thread Vegar Neshaug
Hello
 
I'm experiencing some problems with building PyQt4 on a Microsoft Windows machine.
 
I have installed the opensource mingw version of Qt 4.2 and compiled the latest snapshot of SIP( 20061028 ) with MinGW. 
 
When trying to compile PyQt snapshot 20061029 with MinGW ( mingw32-make) I get an "Input line too long" error when it comes to compiling the QtGui directory. I've searched around and I found this is a windows specific problem related to a maximum input line size in the command line interpreter.

 
I'm not very proficient with c++ or maked projects but it seems to me like the QtGui directorys Makefile has an exceptionally long OFILES variable which results in a very long input line to g++, and it unfortunately exceeds a maximum in Windows.

 
Is it perhaps possible to alter the Makefile to make the compilation in two g++ commands instead of one, to shorten the input line?
 
Thanks in advance,
Vegar
 
Below is the output of the mingw32-make attempt:
 
C:\Qt\pyqt>mingw32-makemakefile:30: warning: overriding commands for target `.c.o'makefile:27: warning: ignoring old commands for target `.c.o'mingw32-make[1]: Entering directory `C:/Qt/pyqt/QtCore'
mingw32-make[1]: `QtCore.pyd' is up to date.mingw32-make[1]: Leaving directory `C:/Qt/pyqt/QtCore'makefile:30: warning: overriding commands for target `.c.o'makefile:27: warning: ignoring old commands for target `.c.o'
mingw32-make[1]: Entering directory `C:/Qt/pyqt/QtGui'g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -Wl,-subsystem,windows -Wl,-s -o QtGui.pyd sipQtGuicmod
ule.o sipQtGuiQMap.o sipQtGuiQVector.o sipQtGuiQWorkspace.o sipQtGuiQWidgetAction.o sipQtGuiQWhatsThis.o sipQtGuiQRegExpValidator.o sipQtGuiQDoubleValidator.o sipQtGuiQIntValidator.o sipQtGuiQValidator.o sipQtGuiQUndoView.o
 sipQtGuiQUndoStack.o sipQtGuiQUndoCommand.o sipQtGuiQUndoGroup.o sipQtGuiQTreeWidgetItemIteratorIteratorFlags.o sipQtGuiQTreeWidgetItemIterator.o sipQtGuiQTreeWidget.o sipQtGuiQTreeWidgetItem.o sipQtGuiQTreeView.o
 sipQtGuiQToolTip.o sipQtGuiQToolButton.o sipQtGuiQToolBox.o sipQtGuiQToolBar.o sipQtGuiQTextTable.o sipQtGuiQTextTableCell.o sipQtGuiQTextOptionFlags.o sipQtGuiQTextOption.o sipQtGuiQTextBlockUserData.osipQtGuiQTextFragment.o
 sipQtGuiQTextBlockiterator.o sipQtGuiQTextBlock.o sipQtGuiQTextFrameiterator.o sipQtGuiQTextFrame.o sipQtGuiQTextObject.o sipQtGuiQTextBlockGroup.o sipQtGuiQTextList.o sipQtGuiQTextLine.o sipQtGuiQTextLayoutFormatRa
nge.o sipQtGuiQTextLayout.o sipQtGuiQTextInlineObject.o sipQtGuiQTextTableFormat.o sipQtGuiQTextFrameFormat.o sipQtGuiQTextImageFormat.o sipQtGuiQTextListFormat.o sipQtGuiQTextBlockFormat.o sipQtGuiQTextCharFormat.o
 sipQtGuiQTextFormatPageBreakFlags.o sipQtGuiQTextFormat.o sipQtGuiQTextLength.o sipQtGuiQTextEditAutoFormatting.o sipQtGuiQTextEditExtraSelection.o sipQtGuiQTextDocumentFragment.o sipQtGuiQTextDocumentFindFlags.o
 sipQtGuiQTextDocument.o sipQtGuiQt.o sipQtGuiQTextCursor.o sipQtGuiQTextEdit.o sipQtGuiQTextBrowser.o sipQtGuiQTabWidget.o sipQtGuiQTableWidget.o sipQtGuiQTableWidgetItem.o sipQtGuiQTableWidgetSelectionRange.o s
ipQtGuiQTableView.o sipQtGuiQTabBar.o sipQtGuiQSystemTrayIcon.o sipQtGuiQSyntaxHighlighter.o sipQtGuiQStylePainter.o sipQtGuiQStyleOptionGraphicsItem.o sipQtGuiQStyleOptionSizeGrip.o sipQtGuiQStyleOptionViewItemV2ViewItemFeatures.o
 sipQtGuiQStyleOptionViewItemV2.o sipQtGuiQStyleOptionGroupBox.o sipQtGuiQStyleOptionToolBarToolBarFeatures.o sipQtGuiQStyleOptionToolBar.o sipQtGuiQStyleHintReturnMask.o sipQtGuiQStyleHintReturn.o sipQtGuiQStyleOptionTitleBar.o
 sipQtGuiQStyleOptionComboBox.o sipQtGuiQStyleOptionToolButtonToolButtonFeatures.o sipQtGuiQStyleOptionToolButton.o sipQtGuiQStyleOptionSpinBox.o sipQtGuiQStyleOptionSlider.o sipQtGuiQStyleOptionComplex.o sipQtGuiQStyleOptionRubberBand.o
 sipQtGuiQStyleOptionToolBox.o sipQtGuiQStyleOptionViewItem.o sipQtGuiQStyleOptionDockWidget.o sipQtGuiQStyleOptionMenuItem.o sipQtGuiQStyleOptionProgressBarV2.o sipQtGuiQStyleOptionProgressBar.o sipQtGuiQStyleOptionTabV2.o
 sipQtGuiQStyleOptionTabCornerWidgets.o sipQtGuiQStyleOptionTab.o sipQtGuiQStyleOptionButtonButtonFeatures.o sipQtGuiQStyleOptionButton.o sipQtGuiQStyleOptionHeader.o sipQtGuiQStyleOptionTabBarBase.o sipQtGuiQStyleOptionTabWidgetFrame.o
 sipQtGuiQStyleOptionFrameV2FrameFeatures.o sipQtGuiQStyleOptionFrameV2.o sipQtGuiQStyleOptionFrame.o sipQtGuiQStyleOptionFocusRect.o sipQtGuiQStyleOption.o sipQtGuiQStyleFactory.o sipQtGuiQStyleSubControls.o 
sipQtGuiQStyleState.o sipQtGuiQStyle.o sipQtGuiQStringListModel.o sipQtGuiQStatusBar.o sipQtGuiQStandardItem.o sipQtGuiQStandardItemModel.o sipQtGuiQStackedWidget.o sipQtGuiQStackedLayout.o sipQtGuiQSplitterHandle.o
 sipQtGuiQSplitter.osipQtGuiQSplashScreen.o sipQtGuiQDoubleSpinBox.o sipQtGuiQSpinBox.o sipQtGuiQSound.o sipQtGuiQSortFilterProxyModel.o sipQtGuiQSlider.o sipQtGuiQSizePolicy.o sipQtGuiQSizeGrip.o sipQtGuiQShortcut.o
 sipQtGuiQSessionManager.o sipQtGuiQScrollBar.o sipQtGuiQScro

Re: [PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv

2006-11-03 Thread Xavier Décoret

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


[PyKDE] undefined symbol: _ZNK18QX11EmbedContainer5errorEv

2006-11-03 Thread Andrew Wilkinson
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 linux2Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtGuiTraceback (most recent call last):  File "", line 1, in ImportError: /usr/lib64/python2.5/site-packages/PyQt4/QtGui.so: undefined symbol: _ZNK18QX11EmbedContainer5errorEv
>>>  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