[PyQt] QT_SHARED not defined
Phil Thompson
phil at riverbankcomputing.com
Tue May 13 08:56:08 BST 2008
On Tuesday 13 May 2008 00:10:50 Matt Newell wrote:
> On Friday 09 May 2008 15:28:09 Phil Thompson wrote:
> > On Friday 09 May 2008 22:13:39 Matt Newell wrote:
> > > Using vanilla qt-x11-4.4.0 with PyQt-x11-gpl-4.4-snapshot-20080508 and
> > > sip-4.7.5-snapshot-20080507.
> > >
> > > Not a problem for me to work around, just thought you might want to
> > > know this is still an issue, and afaict is not related to any
> > > distribution issues.
> >
> > What are the circumstances in which it needs to be defined?
>
> PyQt's configure script errors with "Qt has been built as static libraries
> so either the -g or -k argument should be used." even though qt is built as
> regular shared libs.
Obviously I've never seen the problem.
> I believe I had the same problem with earlier version of pyqt and just
> hacked the configure.py script to work around it, which I believe is the
> same thing the distro's are doing. Probably an inconsistency with the
> qmakespecs or something, I haven't looked into it further.
The error message will appear if the test program finds that neither QT_SHARED
or QT_DLL are defined.
The .pro file that configure.py generates includes "CONFIG += link_prl" as a
workaround for broken Linux distros not setting QT_SHARED properly. This is
ignored by a normal Qt build.
Can you suggest a different workaround for your distro?
Phil
More information about the PyQt
mailing list