[PyQt] QtDBus dependency on OS X

Phil Thompson phil at riverbankcomputing.com
Mon Oct 19 09:09:21 BST 2015


On 19 Oct 2015, at 5:15 a.m., Florian Bruhin <me at the-compiler.org> wrote:
> 
> Hi,
> 
> when Qt is built with -no-dbus on OS X, the PyQt build fails during
> linking:
> 
> 	/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -undefined dynamic_lookup -install_name /usr/local/Cellar/pyqt5/5.5_1/lib/python3.5/site-packages/PyQt5/QtGui.so -framework QtPrintSupport -framework QtDBus -framework QtWidgets ...
> 	ld: framework not found QtDBus
> 	clang: error: linker command failed with exit code 1 (use -v to see invocation)
> 	make[1]: *** [libQtGui.dylib] Error 1
> 	make: *** [sub-QtGui-make_first-ordered] Error 2
> 
> This broke the Homebrew PyQt5 package because DBus was disabled there:
> 
> https://github.com/Homebrew/homebrew/issues/45114
> 
> Patching configure.py to exclude "-framework QtDBus" fixes this and
> results in an apparently working PyQt:
> 
> https://github.com/Homebrew/homebrew/compare/master...UniqMartin:pyqt5-no-dbus
> 
> Is this intentional?

Already fixed. It's there as a workaround for OS X rpath related bugs in Qt v5.5.x.

Phil


More information about the PyQt mailing list