Phil Thompson
Mon, 28 Apr 2008 07:23:05 -0700
On Monday 28 April 2008, Tom Brown wrote: > Hi, > > OS: Ubuntu 64bit > Qt: qt-x11-opensource-src-4.4.0-rc1 > sip: sip-4.7.5-snapshot-20080424 > PyQt: PyQt-x11-gpl-4.4-snapshot-20080427 > > Qt and sip compiled/installed fine. The PyQt compile produced these > errors: > > ... > sipQtCorecmodule.o: In function `qtcore_pyqtproperty_traverse': > sipQtCorecmodule.cpp:(.text+0xb5): undefined reference to > `PyProperty_Type' > sipQtCorecmodule.o: In function `func_Q_FLAGS': > sipQtCorecmodule.cpp:(.text+0x209): undefined reference to > `_Py_NoneStruct' > sipQtCorecmodule.o: In function `func_Q_ENUMS': > sipQtCorecmodule.cpp:(.text+0x2a9): undefined reference to > `_Py_NoneStruct' > sipQtCorecmodule.o: In function `func_pyqtRestoreInputHook': > sipQtCorecmodule.cpp:(.text+0x332): undefined reference to > `PyOS_InputHook' > sipQtCorecmodule.cpp:(.text+0x343): undefined reference to > `_Py_NoneStruct' > sipQtCorecmodule.o: In function `func_pyqtRemoveInputHook': > sipQtCorecmodule.cpp:(.text+0x3a2): undefined reference to > `PyOS_InputHook' > sipQtCorecmodule.cpp:(.text+0x3b0): undefined reference to > `_Py_NoneStruct' > sipQtCorecmodule.o: In function `func_qRemovePostRoutine': > sipQtCorecmodule.cpp:(.text+0x461): undefined reference to > `_Py_NoneStruct' > sipQtCorecmodule.cpp:(.text+0x482): undefined reference to > `_Py_NoneStruct' > ... > > There were many more errors like these. I did find in the sip change log > that the build system was modified to remove -Wl,--no-undefined when > generating a Makefile. Then this change was backed out. Does that have > anything to do with these errors? Or am I way off target? That's the problem. > A google search turned up the same errors for an Ubuntu package for PyQt > 4.3.1, but no solutions. > > Any ideas what I did wrong? You didn't search the mailing list archives. You need to fix your g++.conf. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt