cartr / homebrew-qt4

Homebrew tap for Qt4 and dependent formulae on Sierra
BSD 2-Clause "Simplified" License
105 stars 42 forks source link

PyQt4 --with-python 3 #44

Closed ale-sc closed 6 years ago

ale-sc commented 6 years ago

I am trying to build pyqt4 with python3 support, however I get the following error:

Last 15 lines from /Users/al/Library/Logs/Homebrew/pyqt@4/03.make:
cd phonon/ && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile 
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -O2 -arch x86_64 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/etc/qt4/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/include/phonon -I/usr/local/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/include/phonon_compat -I. -F/usr/local/lib -o sipphononcmodule.o sipphononcmodule.cpp
clang++ -c -pipe -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -O2 -arch x86_64 -Wall -W -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/etc/qt4/mkspecs/unsupported/macx-clang-libc++ -I. -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt@4/4.8.7_3/lib/QtGui.framework/Versions/4/Headers -I/usr/local/include/phonon -I/usr/local/include -I. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/local/include/phonon_compat -I. -F/usr/local/lib -o sipphononPhonon.o sipphononPhonon.cpp
/private/tmp/pyqt@4-20180123-86024-75t8w7/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found
#include <abstractaudiooutput.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [sipphononPhonon.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/private/tmp/pyqt@4-20180123-86024-75t8w7/PyQt4_gpl_mac-4.12.1/sip/phonon/abstractaudiooutput.sip:28:10: fatal error: 'abstractaudiooutput.h' file not found
#include <abstractaudiooutput.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [sipphononcmodule.o] Error 1
make: *** [sub-phonon-make_default-ordered] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues

Is there a way to disable phonon when building pyqt@4?

Thanks

cartr commented 6 years ago

Sorry to hear that pyqt@4 isn't building correctly on your system.

In theory, PyQt should detect that Phonon is unavailable and disable it automatically. That's what it does on my system, and I'm not able to reproduce the error you reported.

Could you please run brew config and brew doctor, paste the output into a Gist, and put the link to the Gist in a comment on this issue?

cartr commented 6 years ago

Closing, as I haven't heard back from you. If you're still experiencing this problem, please let me know and I'll reopen it.