[PyQt] headache with SIP
kib2
kib2 at free.fr
Thu Jul 5 20:25:18 BST 2007
Hi,
I'm trying to build SIP one more time under Windows XP SP2 and MinGW but
without success.
1. I have unpacked the source to my personnal directory "C:\KIB\"
2. I folowed the docs : configuring for mingw
C:\KIB\sip-snapshot-20070704>python configure.py -p win32-g++
This is SIP snapshot-20070704 for Python 2.5.1 on win32.
The SIP code generator will be installed in C:\Python25.
The SIP module will be installed in C:\Python25\Lib\site-packages.
The SIP header file will be installed in C:\Python25\include.
The default directory to install .sip files in is C:\Python25\sip.
The platform/compiler configuration is win32-g++.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
3. Now, running mingw32-make gives me a lot of errors
C:\KIB\sip-snapshot-20070704>mingw32-make
mingw32-make[1]: Entering directory `C:/KIB/sip-snapshot-20070704/sipgen'
makefile:29: warning: overriding commands for target `.c.o'
makefile:26: warning: ignoring old commands for target `.c.o'
mingw32-make[1]: `sip.exe' is up to date.
mingw32-make[1]: Leaving directory `C:/KIB/sip-snapshot-20070704/sipgen'
mingw32-make[1]: Entering directory `C:/KIB/sip-snapshot-20070704/siplib'
makefile:29: warning: overriding commands for target `.c.o'
makefile:26: warning: ignoring old commands for target `.c.o'
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
ime-pseudo-reloc -shared -Wl,-subsystem,console -Wl,-s -o sip.pyd siplib.o qtlib
.o threads.o objmap.o bool.o -LC:\Python25\libs -lpython25
siplib.o(.text+0x17):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x361):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x369):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x501):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x509):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x59a):siplib.c: undefined reference to `_imp__PyExc_RuntimeError
'
siplib.o(.text+0x6dd):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x6e5):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x731):siplib.c: undefined reference to `_imp___Py_TrueStruct'
siplib.o(.text+0x741):siplib.c: undefined reference to `_imp___Py_ZeroStruct'
siplib.o(.text+0x798):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7a0):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x88c):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x894):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x971):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x978):siplib.c: more undefined references to `_imp___Py_NoneStru
ct' follow
siplib.o(.text+0x9a2):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0xa04):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0xa58):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xa6c):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0xac1):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xaef):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0xb38):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xbab):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xc0a):siplib.c: undefined reference to `_imp__PyExc_RuntimeError
'
siplib.o(.text+0xc49):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xd21):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0xe6d):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xe92):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xe9a):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xec2):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0xf2b):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xf33):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0xf93):siplib.c: undefined reference to `_imp__PyExc_IndexError'
siplib.o(.text+0x102f):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x1056):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x10fd):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x11d5):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x1283):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x1b0b):siplib.c: undefined reference to `_imp__PyMethod_Type'
siplib.o(.text+0x1b15):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1b3b):siplib.c: undefined reference to `_imp__PyFunction_Type'
siplib.o(.text+0x1b74):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1cc4):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1d36):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1d66):siplib.c: undefined reference to `_imp__PyExc_AttributeEr
ror'
siplib.o(.text+0x1e0e):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1e73):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1eaf):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1eee):siplib.c: undefined reference to `_imp__PyExc_ValueError'
siplib.o(.text+0x1f17):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x1f4e):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x230f):siplib.c: undefined reference to `_imp__PyExc_NotImplemen
tedError'
siplib.o(.text+0x234f):siplib.c: undefined reference to `_imp__PyMethod_Type'
siplib.o(.text+0x2483):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x24b3):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x299d):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x29e1):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x2ad8):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x2b65):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x2ba5):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x2c24):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x2d73):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x2ecd):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x2ed4):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x2f0b):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x2ff5):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x2ffc):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x301c):siplib.c: more undefined references to `_imp___Py_NoneStr
uct' follow
siplib.o(.text+0x32ad):siplib.c: undefined reference to `_imp__PyExc_Exception'
siplib.o(.text+0x32e7):siplib.c: undefined reference to `_imp__PyExc_Exception'
siplib.o(.text+0x36a2):siplib.c: undefined reference to `_imp__PyExc_AttributeEr
ror'
siplib.o(.text+0x36d6):siplib.c: undefined reference to `_imp__PyExc_ValueError'
siplib.o(.text+0x36fe):siplib.c: undefined reference to `_imp__PyExc_AttributeEr
ror'
siplib.o(.text+0x3793):siplib.c: undefined reference to `_imp__PyExc_AttributeEr
ror'
siplib.o(.text+0x382c):siplib.c: undefined reference to `_imp___Py_NotImplemente
dStruct'
siplib.o(.text+0x3833):siplib.c: undefined reference to `_imp___Py_NotImplemente
dStruct'
siplib.o(.text+0x388c):siplib.c: undefined reference to `_imp___Py_NotImplemente
dStruct'
siplib.o(.text+0x3981):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x39b7):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x39c2):siplib.c: undefined reference to `_imp__PyCObject_Type'
siplib.o(.text+0x3b42):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x3b4a):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x3c04):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x3ecc):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x3ed3):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x40f5):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x4736):siplib.c: undefined reference to `_imp__PyExc_RuntimeErro
r'
siplib.o(.text+0x4c13):siplib.c: undefined reference to `_imp__PyInt_Type'
siplib.o(.text+0x4c9b):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x4e2e):siplib.c: undefined reference to `_imp__PyExc_RuntimeErro
r'
siplib.o(.text+0x513e):siplib.c: undefined reference to `_imp__PyExc_RuntimeErro
r'
siplib.o(.text+0x52e6):siplib.c: undefined reference to `_imp__PyExc_RuntimeErro
r'
siplib.o(.text+0x5475):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x54dd):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x5520):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x55cb):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x57fe):siplib.c: undefined reference to `_imp__PyType_Type'
siplib.o(.text+0x589b):siplib.c: undefined reference to `_imp__PyBaseObject_Type
'
siplib.o(.text+0x5901):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x59ca):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x5d17):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x5ec1):siplib.c: undefined reference to `_imp___Py_NotImplemente
dStruct'
siplib.o(.text+0x5ec8):siplib.c: undefined reference to `_imp___Py_NotImplemente
dStruct'
siplib.o(.text+0x5ff2):siplib.c: undefined reference to `_imp__PyBaseObject_Type
'
siplib.o(.text+0x60bf):siplib.c: undefined reference to `_imp__PyBaseObject_Type
'
siplib.o(.text+0x66ec):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x6726):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0x678b):siplib.c: undefined reference to `_imp__PyExc_TypeError'
siplib.o(.text+0x6862):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x6869):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x6a82):siplib.c: undefined reference to `_imp__PyBaseObject_Type
'
siplib.o(.text+0x6cda):siplib.c: undefined reference to `_imp__PyExc_ValueError'
siplib.o(.text+0x6cf8):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x6d10):siplib.c: undefined reference to `_imp__PyUnicode_Type'
siplib.o(.text+0x6dc4):siplib.c: undefined reference to `_imp__PyExc_ValueError'
siplib.o(.text+0x6df4):siplib.c: undefined reference to `_imp__PyUnicode_Type'
siplib.o(.text+0x6e7a):siplib.c: undefined reference to `_imp__PyExc_ValueError'
siplib.o(.text+0x6e98):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x6eb0):siplib.c: undefined reference to `_imp__PyUnicode_Type'
siplib.o(.text+0x70db):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7128):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0x72d4):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0x7368):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7443):siplib.c: undefined reference to `_imp__PyBool_Type'
siplib.o(.text+0x7454):siplib.c: undefined reference to `_imp___Py_TrueStruct'
siplib.o(.text+0x749a):siplib.c: undefined reference to `_imp__PyString_Type'
siplib.o(.text+0x759b):siplib.c: undefined reference to `_imp__PyInt_Type'
siplib.o(.text+0x75ce):siplib.c: undefined reference to `_imp__PyFloat_Type'
siplib.o(.text+0x760f):siplib.c: undefined reference to `_imp__PyFloat_Type'
siplib.o(.text+0x763a):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7875):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x7a7f):siplib.c: undefined reference to `_imp__PyTuple_Type'
siplib.o(.text+0x7aeb):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
siplib.o(.text+0x7ce4):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7d4a):siplib.c: undefined reference to `_imp___Py_NoneStruct'
siplib.o(.text+0x7f40):siplib.c: undefined reference to `_imp__PyExc_SystemError
'
qtlib.o(.text+0x3e):qtlib.c: undefined reference to `_imp___Py_NoneStruct'
qtlib.o(.text+0xaf):qtlib.c: undefined reference to `_imp__PyMethod_Type'
qtlib.o(.text+0xc4):qtlib.c: undefined reference to `_imp__PyMethod_Type'
qtlib.o(.text+0x98d):qtlib.c: undefined reference to `_imp___Py_NoneStruct'
qtlib.o(.text+0xa23):qtlib.c: undefined reference to `_imp__PyCFunction_Type'
qtlib.o(.text+0xa35):qtlib.c: undefined reference to `_imp__PyExc_NameError'
qtlib.o(.text+0xae8):qtlib.c: undefined reference to `_imp__PyExc_TypeError'
qtlib.o(.text+0x10cd):qtlib.c: undefined reference to `_imp__PyExc_TypeError'
qtlib.o(.text+0x10f3):qtlib.c: undefined reference to `_imp__PyExc_NameError'
qtlib.o(.text+0x1252):qtlib.c: undefined reference to `_imp__PyFunction_Type'
qtlib.o(.text+0x12bd):qtlib.c: undefined reference to `_imp___Py_NoneStruct'
qtlib.o(.text+0x13a7):qtlib.c: undefined reference to `_imp___Py_TrueStruct'
qtlib.o(.text+0x13ae):qtlib.c: undefined reference to `_imp___Py_TrueStruct'
qtlib.o(.text+0x144b):qtlib.c: undefined reference to `_imp___Py_ZeroStruct'
qtlib.o(.text+0x1452):qtlib.c: undefined reference to `_imp___Py_ZeroStruct'
qtlib.o(.text+0x14db):qtlib.c: undefined reference to `_imp__PyMethod_Type'
qtlib.o(.text+0x14e7):qtlib.c: undefined reference to `_imp__PyCFunction_Type'
qtlib.o(.text+0x1765):qtlib.c: undefined reference to `_imp___Py_TrueStruct'
qtlib.o(.text+0x176c):qtlib.c: undefined reference to `_imp___Py_TrueStruct'
threads.o(.text+0xc7):threads.c: undefined reference to `_imp___Py_NoneStruct'
threads.o(.text+0xcf):threads.c: undefined reference to `_imp___Py_NoneStruct'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [sip.pyd] Error 1
mingw32-make[1]: Leaving directory `C:/KIB/sip-snapshot-20070704/siplib'
mingw32-make: *** [all] Error 2
What's wrong with me ?
Thanks for your help.
More information about the PyQt
mailing list