[PyQt] Re: [Pyqwt-users] Using PyQwt with a statically linked Qt
Markus Dahlbokum
dahlbokum at intes.de
Mon Sep 1 15:39:05 BST 2008
Hello,
I'm still having problems building my interpreter. As far as I understand the
error occurs because pyqt and pyqwt are not linked against the same qt libs.
Here is what I did for my last try:
- built qt4.4.1 statically
- built qwt5.1.1 statically
- build python2.5.2 with qtcore, qtgui, qtsvg and qwt linked
(the whole archives)
- built sip4.7.7 dynamically
- built pyqt4.4.3 dynamically (with option -g)
- built numpy1.1.0 dynamically
- built pyqwt5.1.0 dynamically
Before building pyqwt I modified my PATH variable to ensure qmake will be used
from my statically built qt.
As I'm still running into the same error I'm still doing something wrong.
Is there a possibility to check which qt instance is used by pyqt and which by
pyqwt?
Thanks for your help.
Markus
> On Tue, 15 Jul 2008 10:40:38 +0200
> Discussion and help list for PyQwt users
>
> <pyqwt-users at lists.sourceforge.net> wrote:
> > Hello,
> >
> > I am trying to install PyQwt into a fully functional installation of
> > python2.5.1
> > qt4.3.3 (tried also qt4.3.5) - commercial license
> > sip4.7.3 (4.7.4, 4.7.6)
> > PyQt4.3.3 (4.4.3) - commercial license
> > numpy1.1.0
> >
> > I tried PyQwt 5.0 and 5.1 but both crashed with the following error:
> >
> > ...must construct a QApplication befor a QPaintDevice...
> >
> > QtCore and QtGui are statically linked into the python executable.
> >
> > I set up a second configuration with qt dynamically linked (gpl
> > license) and everything works fine.
> >
> > Is there a problem with a statically linked qt?
> >
> > Thanks for your help.
> > Markus
>
> PyQt and PyQwt (and Qwt) have to use the same static Qt libraries.
> The easiest would be:
> - to handle the Qwt library as if it were the QtCore and QtGui libraries
> - to handle PyQwt as if it were the QtCore and QtGui modules
> However, you will run into license problem. You can contact me off-list
> to resolve it. See
> (http://pyqwt.cvs.sourceforge.net/pyqwt/pyqwt5/COPYING.GSE?view=markup
> for an example of a license.
>
> As an alternative: I do not know if it is possible to link the PyQwt module
> dynamically against a Python executable containing static libraries
> of QtCore, QtGui and Qwt.
>
> You may also ask Phil, what is the best way to proceed, since he must
> have more experience than I handling those kind of questions.
>
> Best regards -- Gerard
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Pyqwt-users mailing list
> Pyqwt-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyqwt-users
More information about the PyQt
mailing list