Alan,

Thanks. It seems that we're making some progress. I am working on Windows and I do not get the warning "Somehow we attempted to plot before the wxPLplotwindow was ready. The plot will not be drawn". I get a plot with some missing elements. I've not tried to build or run in Linux.

Thanks for your help,
David


On 6/6/2018 1:48 AM, Alan W. Irwin wrote:
On 2018-05-25 15:37-0400 David Bergman wrote:

Alan,

I regret waiting this long to reply but have had a lot of work.
To tell you the truth I am not sure what exactly caused the issue but I've deleted the "wxOVERRIDE" from the code, which was clearly a copy-paste from a wxWidgets example.

I copied the simple.cpp code into the PLplot-Widgets example.

cmake and nmake both ran find but cmake install generated the following fatal error. Recall that I had quite a bit of trouble getting it to install the first time and I may have missed an option that is required. Not sure if my error is due to the same issue that caused your error.


Install the project...
-- Install configuration: "Debug"
-- Installing: C:/Program Files (x86)/plplot/share/doc/plplot/ABOUT
CMake Error at cmake_install.cmake:39 (file):
file INSTALL cannot copy file "C:/plplot-5.13.0/ABOUT" to "C:/Program Files
 (x86)/plplot/share/doc/plplot/ABOUT".


NMAKE : fatal error U1077: 'echo' : return code '0x1'
Stop.

Hi David:

In my case, it was configuration of a new computer which kept me from
replying to what you said above in a timely way.  My apologies for that
delay.  But that new computer configuration has now been a success (I
am writing this from the new computer and PLplot also builds
on that new computer) so I now have a chance to answer you.

I think the nmake trouble you are having is due to the (default) install prefix "C:/Program Files (x86)" having a blank in the path. I think all those "blank in path" issues are now gone in the git version of PLplot so please try that not only for that reason but also because that is the version of PLplot I test with
in any case.

I tried a similar test (copying simple.cpp on top of examples/c++/wxPLplotDemo.cpp) here, but in my case I configured PLplot with the cmake option -DBUILD_TEST=ON which allows users to test in the build tree without having to install. The result on
my new Debian Buster platform was I could build and run simple.cpp using
"make test_wxPLplotDemo".  That test had two key warnings which were

Gtk-Message: 22:23:32.181: GtkDialog mapped without a transient parent. This is discouraged.

on the command line + a dialog box with the following contents:

"Somehow we attempted to plot before the wxPLplotwindow was ready. The plot will not be drawn".

And indeed that was followed by a blank plot. So it appears your simple.cpp is still
not set up correctly for the Linux case.

I have put this thread back on the plplot-general list because Phil
Rosenberg, the author of the PLplot wxwidgets binding and device may
wish to comment since he had similar "waiting for events" trouble in
the past on Linux which might be related to what I am seeing on Linux with
the current simple.cpp.

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); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); 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
__________________________


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to