[PyQt] pyqt does not find phonon (from kde.org) at build time

solsTiCe d'Hiver solstice.dhiver at gmail.com
Fri Feb 19 18:50:26 GMT 2010


hi.
[in case my previous mail has been blocked, here it is again]

i had the surprise to get an import error when using pyqt 4.7 and qt 4.6
about Phonon from PyQt4.phonon.
I found that the package of pyqt on archlinux was missing the phonon
module. It's not because the package has not been built with phonon
installed on the machine building pyqt but because configure.py can't
find phonon from kde.org (with the funny headers .h)

so i had to use this patch to make it work


--- configure.py	2010-01-14 15:36:17.000000000 +0100
+++ configure.py	2010-02-19 13:53:45.000000000 +0100
@@ -362,7 +362,7 @@
         check_module("QtWebKit", "qwebpage.h", "new QWebPage()")
         check_module("QtXml", "qdom.h", "new QDomDocument()")
         check_module("QtXmlPatterns", "qxmlname.h", "new QXmlName()")
-        check_module("phonon", "Phonon/VideoWidget",
+        check_module("phonon", "phonon/videowidget.h",
                 "new Phonon::VideoWidget()")
         check_module("QtAssistant", "qassistantclient.h",
                 "new QAssistantClient(\"foo\")",
extra_lib_dirs=ass_lib_dirs,

i have been told on #pyqt to email this.

voilà




More information about the PyQt mailing list