Opened 6 years ago

Last modified 6 years ago

#55247 assigned defect

py27-pyqt4-4.12.1_0+phonon: fatal error: 'abstractaudiooutput.h' file not found

Reported by: mcmara (Jack McMara) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sierra Cc: tehcog (tehcog)
Port: py-pyqt4

Description

I'm unable to add the +phonon variant to py27-pyqt4.
My system is up-to-date as of today:

$ clang -v
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

The error is:

:info:build /usr/bin/clang++ -c -Os -stdlib=libc++ -pipe -fPIC -arch x86_64 -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/libexec/qt4/mkspecs/macx-g++ -I/opt/local/libexec/qt4/include/phonon -I/opt/local/libexec/qt4/Library/Frameworks/QtGui.framework/Headers -I/opt/local/libexec/qt4/Library/Frameworks/QtCore.framework/Headers -I/opt/local/libexec/qt4/include -F/opt/local/lib -F/opt/local/libexec/qt4/lib -F/opt/local/libexec/qt4/Library/Frameworks -o sipphononQList0100PhononEffectParameter.o sipphononQList0100PhononEffectParameter.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found
:info:build #include <abstractaudiooutput.h>
:info:build          ^~~~~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found

Attached the build log.

Attachments (1)

main.log (1.0 MB) - added by mcmara (Jack McMara) 6 years ago.

Download all attachments as: .zip

Change History (8)

Changed 6 years ago by mcmara (Jack McMara)

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sierra added; py27-pyqt4 phonon abstractaudiooutput.h removed
Owner: set to michaelld
Port: py-pyqt4 added; py27-pyqt4 removed
Status: newassigned
Summary: py27-pyqt4-4.12.1_0+phonon build failure - macOS 10.12.6py27-pyqt4-4.12.1_0+phonon: fatal error: 'abstractaudiooutput.h' file not found

comment:2 Changed 6 years ago by kencu (Ken)

do you have the file?

$ locate abstractaudiooutput
/opt/local/include/phonon/abstractaudiooutput.h

comment:3 Changed 6 years ago by mcmara (Jack McMara)

yes, the phonon port was successfully installed:

$ find /opt/local/ -name abstractaudiooutput*
/opt/local//include/phonon/abstractaudiooutput.h
[... cut ...]

comment:4 Changed 6 years ago by kencu (Ken)

Yep, I get the same error. The file is trying to include

#include <abstractaudiooutput.h>

but as per your and my systems, it should be trying to include

#include <phonon/abstractaudiooutput.h>

Probably the easiest thing to do is add the ${prefix}/include/phonon directory to the system search path with something like

configure.cppflags-append -I ${prefix}/include/phonon

comment:5 Changed 6 years ago by mcmara (Jack McMara)

Same here. As a test, I just did edit the file:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/work/PyQt4_gpl_mac-4.12.1/phonon/Makefile

and added

-I/opt/local/include/phonon

to CPPFLAGS and CXXFLAGS and that worked (the build was successful).

comment:6 Changed 6 years ago by kencu (Ken)

I'm not sure how the port is meant to pick up the proper include directory. We shouldn't have to force it like that. It looks like the phonon.pc flags might be wrong

$ cat /opt/local/lib/pkgconfig/phonon.pc
prefix=/opt/local
exec_prefix=
libdir=/opt/local/lib
includedir=/opt/local/include
buildsystemdir=/opt/local/share/phonon/buildsystem/

Name: Phonon
Description: Phonon library needed to build applications
Version: 4.9.1
Requires: QtCore QtGui QtDBus
Libs: -L${libdir} -lphonon
Cflags: -I${includedir}

at least, they don't show the include dir as

includedir=/opt/local/include/phonon

if that is what they are supposed to be doing.

Version 0, edited 6 years ago by kencu (Ken) (next)

comment:7 Changed 6 years ago by tehcog (tehcog)

Cc: tehcog added
Note: See TracTickets for help on using tickets.