On Mon, 2011-03-07 at 20:40 +0100, Erik Janssens wrote:
> Hello,
> 
> I'd like to compile PySide from sources against my
> QT build.
> 
> However, I prefer to build QT without exceptions, to
> save on resources, this means the XmlPatterns module
> is not build.
> 
> It appears that PySide needs the XmlPatterns module.
> 
> Is this really needed ? or is there a way around it ?

There's a trick to it, but it can be done.

PySide itself doesn't need the XmlPatterns module at runtime.  Rather,
it's needed by the shiboken/generatorrunner/apiextractor toolchain at
compile time.

Basically I did this:

  * make a statically-linked build of Qt with exceptions enabled
  * build apiextractor and generatorrunner against this. They will
statically link the QtPatterns module
  * delete the static Qt and make a new, dynamically-linked build with
exceptions disabled
  * build shiboken and PySide against the dynamic Qt, using the
statically-linked toolchain


You may be able to have a static and dynamic Qt side-by-side but it
seemed to confuse qmake.  There's probably some trick I don't know
about.


  Cheers,

      Ryan

-- 
Ryan Kelly
http://www.rfk.id.au  |  This message is digitally signed. Please visit
[email protected]        |  http://www.rfk.id.au/ramblings/gpg/ for details

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to