On 2018-05-04 13:55-0400 David Bergman wrote:

Alan,

Thanks for the quick response. You are correct, this was a rather convoluted piecemeal hack of several examples from both wxwidgets and plplot.

Attached is a simplified version.

Just to test that out, I locally copied that version on top of
examples/c++/wxPLplotDemo.cpp

and then tested using a CMake-based build of PLplot as follows:

software@raven> make test_wxPLplotDemo
[  0%] Built target plhershey-unicode-gen
[  0%] Built target plhershey-unicode.h_built
[  0%] Built target csirocsa
[ 16%] Built target csironn
[ 16%] Built target tai-utc-gen
[ 16%] Built target tai-utc.h_built
[ 16%] Built target deltaT-gen
[ 16%] Built target deltaT.h_built
[ 16%] Built target qsastime
[ 83%] Built target plplot
[100%] Built target plplotcxx
[100%] Built target plplotwxwidgets
[100%] Building CXX object 
examples/c++/CMakeFiles/wxPLplotDemo.dir/wxPLplotDemo.cpp.o
/home/software/plplot/HEAD/plplot.git/examples/c++/wxPLplotDemo.cpp:109:22: 
error: expected ‘;’ at end of member declaration
  virtual bool OnInit() wxOVERRIDE;
                      ^
/home/software/plplot/HEAD/plplot.git/examples/c++/wxPLplotDemo.cpp:109:24: 
error: ‘wxOVERRIDE’ does not name a type
  virtual bool OnInit() wxOVERRIDE;
                        ^
examples/c++/CMakeFiles/wxPLplotDemo.dir/build.make:62: recipe for target 
'examples/c++/CMakeFiles/wxPLplotDemo.dir/wxPLplotDemo.cpp.o' failed
make[3]: *** [examples/c++/CMakeFiles/wxPLplotDemo.dir/wxPLplotDemo.cpp.o] 
Error 1
CMakeFiles/Makefile2:13159: recipe for target 
'examples/c++/CMakeFiles/wxPLplotDemo.dir/all' failed
make[2]: *** [examples/c++/CMakeFiles/wxPLplotDemo.dir/all] Error 2
CMakeFiles/Makefile2:5315: recipe for target 
'examples/CMakeFiles/test_wxPLplotDemo.dir/rule' failed
make[1]: *** [examples/CMakeFiles/test_wxPLplotDemo.dir/rule] Error 2
Makefile:1807: recipe for target 'test_wxPLplotDemo' failed
make: *** [test_wxPLplotDemo] Error 2

You should be able to follow my Linux steps on Windows by copying your
simple.cpp on top of examples/c++/wxPLplotDemo.cpp, configuring PLplot
using cmake on the command line using the "NMake Makefiles" generator, and 
replacing make with nmake
to attempt to build the test_wxPLplotDemo target.

Let me know how that test attempt goes, and please fix whatever causes
the above build error (at least for the Linux case) in your simple.cpp
and send it to me again.

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
__________________________

------------------------------------------------------------------------------
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