On 2009-07-21 19:24+0100 Andrew Ross wrote:

> On Tue, Jul 21, 2009 at 10:51:20AM -0700, Alan Irwin wrote:
>>> 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.
>
> Sorry - I missed this from the commit first time round. Now commited.

Thanks for that fix.  It turns out the above idea works.  That is, if you
insert (revision 10175) the stanza

#if defined(plplot_pyqt4_EXPORTS)
#define initplplot_pyqt4 PLDLLIMPEXP_PYQT4 initplplot_pyqt4
#endif

in qt.h, then you get the following result:

softw...@raven> nm --extern-only --defined-only
~/plplot_cvs/installcmake/lib/python2.5/site-packages/plplot_pyqt4.so
0000000000219ac0 A __bss_start
0000000000219ac0 A _edata
0000000000219b30 A _end
00000000000139c8 T _fini
0000000000005da8 T _init
00000000000064a1 T initplplot_pyqt4

and pyqt4_example.py works for both the downloaded Qt4 (with appropriately
set LD_LIBRARY_PATH to force the system version of pyqt4 to point to the
downloaded Qt4) and also the system version of Qt4.

So subject to you possibly tweaking the crude hack above, I think we are
finally done with qt visibility issues.  Thanks for your essential help
in getting this difficult problem sorted out.

To our developers with access to Windows platforms: please test qt and
especially pyqt4 access to PLplot now that the last qt visibility issue on
Linux has been dealt with.

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