On 2009-07-21 05:23-0700 Alan W. Irwin wrote:

> On 2009-07-21 10:53+0100 Andrew Ross wrote:
>> This just leaves the issue of getting the right PLDLLIMPEXP macros into the
>> sip generated code. I have added the infrastructure to define the
>> PLDLLIMPEXP_PYQT4 macros. All that is required is to add this macro to the
>> definition of initplplot_pyqt4 in sipplplot_pyqt4cmodule.cpp and everything
>> works. I've done this by hand and checked that the pyqt4_example.py
>> example works correctly. I know nothing about sip. Is it possible to do
>> this automatically or do we need to massage the code after it has been
>> generated?
>
> I only know a slight bit about sip, but the specification files (such
> as plplot_pyqt4.sip) are very similar to headers.  You will see in that
> file
>
> #include "qt.h"
>
> which in turn generates
>
> #include "qt.h"
>
> in sipplplot_pyqt4cmodule.cpp.
>
> I presume you could #include other headers as well in the sip specification
> file and they would correspondingly be #included in
> sipplplot_pyqt4cmodule.cpp.  Would it be possible to #define
> initplplot_pyqt4 in a special header or even in qt.h so the
> PLDLLIMPEXP_PYQT4 macro is effectively used?

I was all set to try this idea, but I couldn't even get the above "by hand"
method to work wherever I placed the PLDLLIMPEXP_PYQT4 on the two alternate
lines which define initplplot_pyqt4.  Did you forget to commit something? 
For example, I cannot find any mention of pyqt in pldll.h.in.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to