[PyQt] PyQt4 fails to detect newer versions of Phonon

Phil Thompson phil at riverbankcomputing.com
Fri Nov 8 12:24:25 GMT 2013


On Fri, 8 Nov 2013 16:06:42 +0400, Dmitry Shachnev <mitya57 at ubuntu.com>
wrote:
> Hi,
> 
> PyQt4 fails to detect Phonon ≥ 4.7:
> 
> g++ -DQT_NO_DEBUG -DQT_PHONON_LIB -I. -I/usr/mkspecs/linux-g++
> -I/usr/include/qt4/phonon -I/usr/include/qt4 -pipe  -g -O2
> -fstack-protector --param=ssp-buffer-size=4 -Wformat
> -Werror=format-security  -D_FORTIFY_SOURCE=2 -w -D_REENTRANT
> cfgtest_phonon.cpp -o cfgtest_phonon -L/usr/lib  -Wl,-z,relro -Wl,-O1
> -lphonon
> In file included from cfgtest_phonon.cpp:1:0:
> /usr/include/qt4/phonon/videowidget.h:28:19: fatal error: QWidget: No
> such file or directory
>  #include <QWidget>
> 
> This is caused by upstream commit
> http://quickgit.kde.org/?p=phonon.git&a=commitdiff&h=b51f5bf26da7> they changed <QtGui/QWidget> to just <QWidget>, so you now should make
> configure.py add QtGui dir to include paths.

Non-Qt phonon isn't supported. Also configure-ng.py shouldn't have a
problem.

Phil


More information about the PyQt mailing list