Hi Werner:

I was curious to see whether the memory management problems found by Winson
also showed up on Linux so I tried building wxPLplotDemo.cpp in the install
tree.

Here is how I built it on Ubuntu Dapper:

[EMAIL PROTECTED]> /usr/bin/c++ wxPLplotDemo.cpp -o test -Wl,-rpath
-Wl,/home/software/plplot_cvs/installcmake/lib:/home/software/autotools/install/lib
PKG_CONFIG_PATH=/home/software/plplot_cvs/installcmake/lib/pkgconfig
pkg-config --cflags --libs plplotd-wxwidgets `wx-config --cflags --libs`

N.B. the wx-config part is currently required, and I comment on that issue
below.

I then tried valgrind on test, and it was valgrind clean (and also produced
a nice plot).  Thus, the wxwidgets example and bindings both seem fine
on Ubuntu Dapper.

Werner, I suggest you ask Winson to try to build wxPLplotDemo.cpp.  If he
gets a good result, then there is something wrong with his experimental code
where he is having problems, and he should follow the wxPLplotDemo.cpp more
closely. If he gets a bad result, then obviously the wxwidgets bindings or
the example need to be fixed for Winson's platform.

Note, since we must configure plplotd-wxwidgets.pc in any case to give the
users access to our wxwidgets binding library, then I think it is less
complicated for the user (and consistent with the approach used for all the
rest of our bindings) to not require them to supplement pkg-config with
wx-config like I had to do above to build the wxwidgets example. The
required changes to the configuration of plplotd-wxwidgets.pc are clear.  We
already have ${wxWidgets_INCLUDE_DIRS}, ${wxWidgets_DEFINITIONS}, and
${wxWidgets_LIBRARIES} internally available for our CMake build system so it
is a straightforward matter to configure plplotd-wxwidgets.pc with those
variables (appropriately transformed to the pkg-config form as in the other
bindings).

Werner, are you willing to go along with this approach? If so, I will take
responsibility for implementing it.

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 Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to