[PyKDE] Compliling pyqt4

pykde at x11.cjb.net pykde at x11.cjb.net
Tue Jan 16 02:04:23 GMT 2007


On Monday January 15 2007 6:12 pm, Andreas Pakulat wrote:
> You forgot to supply -q /usr/bin/qmake-qt4 and thus


Ok, so I did this:
python configure.py  -w  -q /usr/share/qt4/bin/qmake
 
and it looked like it was compiling, it spent a while at that.

Before it finished though, it ran into a bunch of errors:



g++ -shared -Wl,-rpath,/usr/lib -Wl,--version-script=QtSvg.exp -o QtSvg.so 
sipQtSvgcmodule.o sipQtSvgQSvgWidget.o 
sipQtSvgQSvgRenderer.o -L/usr/lib -L/usr/X11R6/lib -lQtSvg -L/build/buildd/qt4-x11-4.1.2/lib -lQtXml -lQtGui -L/build/buildd/qt4-x11-4.1.2/lib -L/usr/X11R6/lib -laudio -lXt -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lXext -lX11 -lQtCore -lfontconfig -lz -lm -lpthread -ldl -lQtGui -L/build/buildd/qt4-x11-4.1.2/lib -L/usr/X11R6/lib -laudio -lXt -lpng -lSM -lICE -lQtCore -L/build/buildd/qt4-x11-4.1.2/lib -lz -lpthread -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -ldl -lQtCore -L/build/buildd/qt4-x11-4.1.2/lib -lfontconfig -lz -lm -lpthread -ldl -lXext -lX11 -lm -lpthread
make[1]: Leaving directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtSvg'
make[1]: Entering directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtTest'
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/X11R6/include -o 
sipQtTestcmodule.o sipQtTestcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/X11R6/include -o 
sipQtTestQTest.o sipQtTestQTest.cpp
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseRelease(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:78: error: ‘mouseRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mousePress(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:111: error: ‘mousePress’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseMove(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:140: error: ‘mouseMove’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseDClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:171: error: ‘mouseDClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:204: error: ‘mouseClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyRelease(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:235: error: ‘keyRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp:254: error: ‘keyRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyPress(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:285: error: ‘keyPress’ is not a member of ‘QTest’
sipQtTestQTest.cpp:304: error: ‘keyPress’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyEvent(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:326: error: ‘KeyAction’ is not a member of ‘QTest’
sipQtTestQTest.cpp:326: error: expected `;' before ‘a0’
sipQtTestQTest.cpp:334: error: ‘a0’ was not declared in this scope
sipQtTestQTest.cpp:336: error: ‘keyEvent’ is not a member of ‘QTest’
sipQtTestQTest.cpp:346: error: ‘KeyAction’ is not a member of ‘QTest’
sipQtTestQTest.cpp:346: error: expected `;' before ‘a0’
sipQtTestQTest.cpp:354: error: ‘a0’ was not declared in this scope
sipQtTestQTest.cpp:356: error: ‘keyEvent’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyClicks(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:388: error: ‘keyClicks’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:420: error: ‘keyClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:439: error: ‘keyClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: At global scope:
sipQtTestQTest.cpp:495: error: ‘Click’ is not a member of ‘QTest’
sipQtTestQTest.cpp:496: error: ‘MouseClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:497: error: ‘MouseDClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:498: error: ‘MouseMove’ is not a member of ‘QTest’
sipQtTestQTest.cpp:499: error: ‘MousePress’ is not a member of ‘QTest’
sipQtTestQTest.cpp:500: error: ‘MouseRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp:501: error: ‘Press’ is not a member of ‘QTest’
sipQtTestQTest.cpp:502: error: ‘Release’ is not a member of ‘QTest’
make[1]: *** [sipQtTestQTest.o] Error 1
make[1]: Leaving directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtTest'
make: *** [all] Error 2



I tried doing the make install, since ignoring errors has worked for me in the 
past, and it did copy a lot of things, but I don't think it worked.

cp -f ../sip/QtSvg/qgraphicssvgitem.sip /usr/share/sip/PyQt4/QtSvg/qgraphicssvgitem.sip
cp -f ../sip/QtSvg/qsvgrenderer.sip /usr/share/sip/PyQt4/QtSvg/qsvgrenderer.sip
make[1]: Leaving directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtSvg'
make[1]: Entering directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtTest'
g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/python2.4 -I/usr/mkspecs/linux-g++ -I/usr/include/qt4 -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/X11R6/include -o 
sipQtTestQTest.o sipQtTestQTest.cpp
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseRelease(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:78: error: ‘mouseRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mousePress(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:111: error: ‘mousePress’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseMove(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:140: error: ‘mouseMove’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseDClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:171: error: ‘mouseDClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_mouseClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:204: error: ‘mouseClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyRelease(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:235: error: ‘keyRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp:254: error: ‘keyRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyPress(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:285: error: ‘keyPress’ is not a member of ‘QTest’
sipQtTestQTest.cpp:304: error: ‘keyPress’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyEvent(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:326: error: ‘KeyAction’ is not a member of ‘QTest’
sipQtTestQTest.cpp:326: error: expected `;' before ‘a0’
sipQtTestQTest.cpp:334: error: ‘a0’ was not declared in this scope
sipQtTestQTest.cpp:336: error: ‘keyEvent’ is not a member of ‘QTest’
sipQtTestQTest.cpp:346: error: ‘KeyAction’ is not a member of ‘QTest’
sipQtTestQTest.cpp:346: error: expected `;' before ‘a0’
sipQtTestQTest.cpp:354: error: ‘a0’ was not declared in this scope
sipQtTestQTest.cpp:356: error: ‘keyEvent’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyClicks(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:388: error: ‘keyClicks’ is not a member of ‘QTest’
sipQtTestQTest.cpp: In function ‘PyObject* meth_QTest_keyClick(PyObject*, 
PyObject*)’:
sipQtTestQTest.cpp:420: error: ‘keyClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:439: error: ‘keyClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp: At global scope:
sipQtTestQTest.cpp:495: error: ‘Click’ is not a member of ‘QTest’
sipQtTestQTest.cpp:496: error: ‘MouseClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:497: error: ‘MouseDClick’ is not a member of ‘QTest’
sipQtTestQTest.cpp:498: error: ‘MouseMove’ is not a member of ‘QTest’
sipQtTestQTest.cpp:499: error: ‘MousePress’ is not a member of ‘QTest’
sipQtTestQTest.cpp:500: error: ‘MouseRelease’ is not a member of ‘QTest’
sipQtTestQTest.cpp:501: error: ‘Press’ is not a member of ‘QTest’
sipQtTestQTest.cpp:502: error: ‘Release’ is not a member of ‘QTest’
make[1]: *** [sipQtTestQTest.o] Error 1
make[1]: Leaving directory 
`/mnt/hda3/home/axiom/Downloads/PyQt-x11-gpl-4.1.1/PyQt-x11-gpl-4.1.1/QtTest'
make: *** [install] Error 2


I've never been terribly succesful at compiling things like this. How can I 
get this to work?




More information about the PyQt mailing list