Opened 15 years ago

Closed 15 years ago

#22370 closed defect (fixed)

py26-pyqt4 4.6.1_0 does not build Phonon module

Reported by: des@… Owned by: saispo@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: py26-pyqt4 qt4-mac

Description

The Phonon module in py26-pyqt4 does not get built with the rest of PyQt4, even though Phonon is enabled in my Qt4 build. (I am using qt4-mac @4.5.3_0+darwin_10 .)

The problem seems to be that Phonon is not detected properly during the configure phase. I ran the exact configure.py command run by "port install", but added --verbose, which produced the following error [added line-breaks and indentation so the formatting doesn't get screwed up]:

nebelung> /opt/local/bin/python2.6
    configure.py -g -q /opt/local/libexec/qt4-mac/bin/qmake --confirm-license
    LFLAGS="-F/opt/local/Library/Frameworks -L/opt/local/lib" --verbose
...
Checking to see if the phonon module should be built...
/usr/bin/g++-4.2 -DQT_NO_DEBUG -DQT_PHONON_LIB -I.
    -I/opt/local/libexec/qt4-mac/mkspecs/default
    -I/opt/local/libexec/qt4-mac/lib/phonon.framework/Headers
    -I/opt/local/libexec/qt4-mac/include -pipe -Os -w cfgtest_phonon.cpp -o
    cfgtest_phonon -F/opt/local/libexec/qt4-mac/lib
    -L/opt/local/libexec/qt4-mac/lib -F/opt/local/Library/Frameworks
    -L/opt/local/lib -framework phonon -L/opt/local/lib
    -L/opt/local/libexec/qt4-mac/lib -F/opt/local/libexec/qt4-mac/lib
    -framework QtDBus -L/opt/local/lib -L/opt/local/libexec/qt4-mac/lib
    -F/opt/local/libexec/qt4-mac/lib -ldbus-1 -lpthread -framework QtXml
    -framework QtGui -framework Carbon -framework AppKit -lpng -framework QtCore
    -lz -lm -framework ApplicationServices
In file included from cfgtest_phonon.cpp:1:
/opt/local/libexec/qt4-mac/lib/Phonon.framework/Headers/VideoWidget:1:38: error:
    ../../phonon/videowidget.h: No such file or directory
cfgtest_phonon.cpp: In function ‘int main(int, char**)’:
cfgtest_phonon.cpp:5: error: expected type-specifier before ‘Phonon’
cfgtest_phonon.cpp:5: error: expected `;' before ‘Phonon’
...

This used to work in earlier, 4.5.x versions of PyQt4. Indeed, I confirmed just now that building PyQt4 4.5.4 by hand successfully detects Phonon.

I have also confirmed that the videowidget.h file does not exist on my system. That suggests this might be a problem with qt4-mac -- but if that is the case, I don't understand why 4.5.4 builds correctly. Perhaps 4.6 requires some additional features not present in qt4-mac?

Change History (3)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to saispo@…

comment:2 Changed 15 years ago by sharky@…

The root cause seems to be #22119, there seems to be some mixup in the way phonon headers are getting installed.

comment:3 Changed 15 years ago by sharky@…

Resolution: fixed
Status: newclosed

The problem is fixed in r63150. I have been able to build py26-pyqt4.

Note: See TracTickets for help on using tickets.