[PyKDE] distutils for SIP extensions (=Help needed with SIP)

Jon jjhome at fire-bug.co.uk
Wed Aug 22 22:02:56 BST 2001


Hello Gerard

Did the patch according to your instructions without any problems.

Now get this:

[john at localhost PyMMM-0.0.2]$ python setup.py build_ext
running build_ext
generating MMM/MMM.py from sip/MMM.sip, sip/CCC.sip
/usr/bin/sip -I sip -I /usr/share/sip/qt -c MMM -t Qt_2_3_0 sip/MMM.sip
...fixing by means of fixmmm.fix(dir, name)
...fixing the sip include bugs
g++ -g -O2 -Wall -Wstrict-prototypes -fno-exceptions -fPIC -I/usr/lib/qt2/include -I/usr/include/sip -I/home/john/src/PyMMM-0.0.2/MMM -c MMM/sip_helper.cpp -o sip_helper.o
g++ sip_helper.o -o MMM/sip_helper
"MMM/sip_helper" has made "MMM/sipMMMVersion.h"
/usr/lib/qt2/bin/moc -o MMM/sipMMMProxyMMM.moc MMM/sipMMMProxyMMM.h
"/usr/lib/qt2/bin/moc" has made "MMM/sipMMMProxyMMM.moc"
/usr/lib/qt2/bin/moc MMM/CCC.h -o MMM/moc_CCC.cpp
"/usr/lib/qt2/bin/moc" has made "MMM/moc_CCC.cpp"
building 'libMMMcmodule' extension
skipping MMM/CCC.cpp (build/temp.linux-i686-2.1/CCC.o up-to-date)
g++ -g -O2 -Wall -Wstrict-prototypes -fno-exceptions -fPIC -I/usr/lib/qt2/include -I/usr/include/sip -I/home/john/src/PyMMM-0.0.2/MMM -I/usr/include/python2.1 -c MMM/moc_CCC.cpp -o build/temp.linux-i686-2.1/moc_CCC.o
g++ -g -O2 -Wall -Wstrict-prototypes -fno-exceptions -fPIC -I/usr/lib/qt2/include -I/usr/include/sip -I/home/john/src/PyMMM-0.0.2/MMM -I/usr/include/python2.1 -c MMM/MMMcmodule.cpp -o build/temp.linux-i686-2.1/MMMcmodule.o
g++ -g -O2 -Wall -Wstrict-prototypes -fno-exceptions -fPIC -I/usr/lib/qt2/include -I/usr/include/sip -I/home/john/src/PyMMM-0.0.2/MMM -I/usr/include/python2.1 -c MMM/sipMMMCCC.cpp -o build/temp.linux-i686-2.1/sipMMMCCC.o
g++ -shared build/temp.linux-i686-2.1/CCC.o build/temp.linux-i686-2.1/moc_CCC.o build/temp.linux-i686-2.1/MMMcmodule.o build/temp.linux-i686-2.1/sipMMMCCC.o -L/usr/lib/qt2/lib -Lbuild/lib.linux-i686-2.1 -L/usr/lib/python2.1/site-packages -lsip -lqt -lqtcmodule -o build/lib.linux-i686-2.1/libMMMcmodule.so
copying MMM/MMM.py -> build/lib.linux-i686-2.1
byte-compiling build/lib.linux-i686-2.1/MMM.py to MMM.pyc
[john at localhost PyMMM-0.0.2]$
[john at localhost PyMMM-0.0.2]$
[john at localhost PyMMM-0.0.2]$
[john at localhost PyMMM-0.0.2]$ python examples/xmmm.py
Traceback (most recent call last):
  File "examples/xmmm.py", line 17, in ?
    from MMM import *
ImportError: No module named MMM
[john at localhost PyMMM-0.0.2]$

My autoconf project (which builds and works with PyQt2.4 and sip2.4) gives the following errors on PyQt2.5 and sip2.5. Thats why I went back to 2.4 ???

<<<<<<    make   >>>>>>
cd . && autoheader
make  all-recursive
make[1]: Entering directory `/home/john/projectspy/filecopy'
Making all in sip
make[2]: Entering directory `/home/john/projectspy/filecopy/sip'
sip -I ../sip -I /usr/share/sip/qt -c . ../sip/MMM.sip
touch rebuild-src
c++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/python2.1 -I/usr/include/sip -I/usr/lib/qt2/include  -I/usr/X11R6/include -
fno-rtti  -fno-exceptions -O2 -c sip_helper.cpp
/bin/sh ../libtool --mode=link c++ -fno-exceptions -O2  -o sip_helper  sip_helper.o -L/usr/lib/qt2/lib -lqt -lXext -L/usr/X1
1R6/lib  -lSM -lICE -lX11
c++ -fno-exceptions -O2 -o sip_helper sip_helper.o  -L/usr/lib/qt2/lib -lqt -lXext -L/usr/X11R6/lib -lSM -lICE -lX11
./sip_helper >sipMMMVersion.h
c++ -E -I/usr/include/python2.1 -I/usr/include/sip -I/usr/lib/qt2/include  -I/usr/X11R6/include sipMMMProxyMMM.h >moc_sipMMM
ProxyMMM.h
/usr/lib/qt2/bin/moc -o sipMMMProxyMMM.moc moc_sipMMMProxyMMM.h
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include/python2.1 -I/usr/include/sip -I/usr/lib/q
t2/include  -I/usr/X11R6/include -fno-rtti  -fno-exceptions -O2 -c MMMcmodule.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.1 -I/usr/include/sip -I/usr/lib/qt2/include -I/usr/X11R6/include -fn
o-rtti -fno-exceptions -O2 -Wp,-MD,.deps/MMMcmodule.pp -c MMMcmodule.cpp  -fPIC -DPIC -o MMMcmodule.lo
In file included from sipqtQMenuBar.h:21,
                 from sipqtQMainWindow.h:11,
                 from sipqtQToolBar.h:10,
                 from sipqtQToolButton.h:12,
                 from sipqtQStyle.h:19,
                 from sipqtQWidget.h:22,
                 from sipqtQPixmap.h:15,
                 from sipqtQVariant.h:13,
                 from sipqtQObject.h:12,
                 from sipMMMJJEncryption.h:9,
                 from MMMcmodule.cpp:7:
sipqtQPopupMenu.h:78: `QTabletEvent' was not declared in this scope
sipqtQPopupMenu.h:78: parse error before `)'
sipqtQPopupMenu.h:79: `QIMEvent' was not declared in this scope
sipqtQPopupMenu.h:79: parse error before `)'
sipqtQPopupMenu.h:80: `QIMEvent' was not declared in this scope
sipqtQPopupMenu.h:80: parse error before `)'
sipqtQPopupMenu.h:81: `QIMEvent' was not declared in this scope
sipqtQPopupMenu.h:81: parse error before `)'
sipqtQPopupMenu.h:82: `QContextMenuEvent' was not declared in this 
etc...




More information about the PyQt mailing list