py25-pyqt4 build fails

M Trumpis mtrumpis at berkeley.edu
Thu Feb 12 18:13:31 PST 2009


Frank Schima <macsforever2000 <at> macports.org> writes:

> 
> 
> 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:
> 
> <http://trac.macports.org/ticket/16068>
> 
> It does actually work for me though.
> 
> Cheers!
> Frank
> 
> 

Hi Frank.. I did come across that ticket. That problem seems to crop up after
the build stage, though. It seems to me like the build fail can be gotten around
with a few tweaks to the config machinery (however Qt does that).

It looks like this attempt in the Portfile doesn't work:

configure.post_args	LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"

because the Makefiles in PyQT4 define "LFLAGS = blah blah", instead of "+="

I can monkey-see-monkey-do my way out of the problem line by line, but I'm
clueless about "fixing" the problem.

Kind regards,
Mike



More information about the macports-users mailing list