py25-pyqt4 build fails

Frank Schima macsforever2000 at
Thu Feb 12 15:18:21 PST 2009

On Feb 12, 2009, at 3:30 PM, M Trumpis wrote:

> Hi.. I ran into a pretty basic problem with the py25-pyqt4 (4.4.3)
> port. The error blurb describes it all. Sadly, I don't know how
> macports builds work, but somehow the config missed the
> ${prefix}/Library/Frameworks directory for the -F flag. I just changed
> up by hand the Makefile in
> [build-dir]/work/PyQt-mac-gpl-4.4.3/designer to include the right flag
> and the install went fine from there.
> Unfortunately I'm getting the bus error problem now when I try to
> "from PyQt4 import Qt"
> /usr/bin/g++-4.0 -headerpad_max_install_names -bundle -flat_namespace
> -o libpythonplugin.bundle pluginloader.o moc_pluginloader.o
> -F/opt/local/libexec/qt4-mac/lib -L/opt/local/libexec/qt4-mac/lib
> -framework Python -L/opt/local/lib -L/opt/local/lib/mysql5/mysql
> -L/opt/local/lib/postgresql83 -L/opt/local/libexec/qt4-mac/lib
> -F/opt/local/libexec/qt4-mac/lib -framework QtDesigner -framework
> QtScript -framework QtXml -framework QtGui -framework Carbon
> -framework AppKit -lpng -framework QtCore -lz -lm -framework
> ApplicationServices
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate framework
> for: -framework Python

There's a bug report on this issue:


It does actually work for me though.


More information about the macports-users mailing list