<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=782371517-06112003><FONT face=Arial color=#0000ff size=2>I also
had to comment out the</FONT></SPAN></DIV>
<DIV><SPAN class=782371517-06112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=782371517-06112003><FONT face=Arial color=#0000ff
size=2>%Import qttablemod.sip<BR></FONT></SPAN></DIV>
<DIV><SPAN class=782371517-06112003><FONT face=Arial color=#0000ff size=2>in
qtsqlmod.sip since the qtable definitions are coming from the qtmod.sip
import.</FONT></SPAN></DIV>
<DIV><SPAN class=782371517-06112003><FONT face=Arial color=#0000ff
size=2> </DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Peter Kropf
[mailto:pkropf@legato.com] <BR><B>Sent:</B> Thursday, November 06, 2003 8:58
AM<BR><B>To:</B> 'phil@riverbankcomputing.co.uk';
pykde@mats.imk.fraunhofer.de<BR><B>Subject:</B> RE: [PyKDE] Building PyQt as 1
shared library<BR><BR></FONT></DIV>
<P><FONT size=2>To start, merging qttable into qt was fairly easy. I modified
qtmod.sip, adding %Include qtable.sip. Then rebuilding PyQt resulted in the
qtable code being included and accessable from python. Instead of:</FONT></P>
<P><FONT size=2> from qttable import QTable </FONT></P>
<P><FONT size=2>the python code now reads:</FONT> </P>
<P><FONT size=2> from qt import QTable</FONT> </P>
<P><FONT size=2>As to why I want to do this, it has to do with deployment
issues on Solaris. (See my posting from yesterday titled "qttable and
installer confusion on windows and solaris" for details.) We're using Gordon
McMillan's Installer (which is a great tool) to create executables for
distribution. All is well when running in the development environment (Windows
and Solaris) and in the Windows distribution. But on Solaris we have runtime
issues. I've been able to trace the problem back to the fact that qt and
qtable are two seperate shared libraries. Why that matters, I don't know yet
and it's very frustrating. However by building qtable into the qt shared
library, I'm able to create a distribution package on Solaris that
works.</FONT></P>
<P><FONT size=2>- Peter</FONT> </P><BR>
<P><FONT size=2>> -----Original Message-----</FONT> <BR><FONT size=2>>
From: Phil Thompson [<A
href="mailto:phil@riverbankcomputing.co.uk">mailto:phil@riverbankcomputing.co.uk</A>]
</FONT><BR><FONT size=2>> Sent: Thursday, November 06, 2003 12:52 AM</FONT>
<BR><FONT size=2>> To: Peter Kropf; pykde@mats.imk.fraunhofer.de</FONT>
<BR><FONT size=2>> Subject: Re: [PyKDE] Building PyQt as 1 shared
library</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>>
</FONT><BR><FONT size=2>> On Wednesday 05 November 2003 10:57 pm, Peter
Kropf wrote:</FONT> <BR><FONT size=2>> > Does anyone know if it's
possible to build PyQt so that </FONT><BR><FONT size=2>> there is one
</FONT><BR><FONT size=2>> > shared library that contains all the code
instead of the 8 </FONT><BR><FONT size=2>> > (libqtcanvascmodule.so,
libqtcmodule.so, libqtextcmodule.so, </FONT><BR><FONT size=2>> >
libqtnetworkcmodule.so, libqtsqlcmodule.so, libqttablecmodule.so,
</FONT><BR><FONT size=2>> > libqtuicmodule.so,</FONT> <BR><FONT
size=2>> > libqtxmlcmodule.so) as there are today?</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Building it as a single shared
library shouldn't be too </FONT><BR><FONT size=2>> difficult. The problem
</FONT><BR><FONT size=2>> is that I'm not sure Python can deal with several
modules </FONT><BR><FONT size=2>> being defined in a </FONT><BR><FONT
size=2>> single library as it uses the module name to load the
</FONT><BR><FONT size=2>> extension and to call </FONT><BR><FONT
size=2>> the initialisation function.</FONT> <BR><FONT size=2>>
</FONT><BR><FONT size=2>> Why would you want to do this?</FONT> <BR><FONT
size=2>> </FONT><BR><FONT size=2>> Phil</FONT> <BR><FONT size=2>>
</FONT></P></BLOCKQUOTE></BODY></HTML>