From: Pedro V. <ped...@sp...> - 2016-12-09 19:39:45
|
Hi Phil Is the deprecated wxWidgets still functioning? I gave it a try am I'm getting an error This is Windows Visual Studio, wxWidgets 3.1, plplot 5.11.1 what I did used the commented code in the sample wxPLplotDemo.cpp that starts with //class MyPlotwindow : public wxPLplotwindow I did not run any cmake flag to use the old code (is there one?), so my shortcut was to rename deprecated_wxPLplotstream.h.in to deprecated_wxPLplotstream.h and set this #define WX_TEMP_PL_HAVE_FREETYPE_IS_@PL_HAVE_FREETYPE@ to either #define WX_TEMP_PL_HAVE_FREETYPE_IS_ON #define WX_TEMP_PL_HAVE_FREETYPE_IS_OFF my error call stack is wx_plplot.exe!plParseDrvOpts(DrvOpt * acc_opt) Line 1521 C wx_plplot.exe!plD_init_wxwidgets(PLStream * pls) Line 167 C++ wx_plplot.exe!plP_init() Line 144 C wx_plplot.exe!c_plinit() Line 2341 C wx_plplot.exe!plstream::init() Line 1008 C++ wx_plplot.exe!wxPLplotstream::Create(wxDC * dc, int width, int height, int style) Line 85 C++ wx_plplot.exe!wxPLplotstream::wxPLplotstream(wxDC * dc, int width, int height, int style) Line 36 C++ wx_plplot.exe!wxPLplotwindow::wxPLplotwindow(wxWindow * parent, int id, const wxPoint & pos, const wxSize & size, long style, int pl_style) Line 60 C++ wx_plplot.exe!MyPlotwindow::MyPlotwindow(wxFrame * frame, wxWindow * parent, int id, const wxPoint & pos, const wxSize & size, long style, int pl_style) Line 58 C++ wx_plplot.exe!MyFrame::MyFrame(const wxString & title) Line 95 C++ wx_plplot.exe!wxAppPlot::OnInit() Line 210 C++ so the error comes from this function plParseDrvOpts( DrvOpt *acc_opt ) and the exit is this code if ( !fl ) { snprintf( msg, sizeof ( msg ) - 1, "Option '%s' not recognized.\n\nRecognized options for this driver are:\n", drvp->option ); plwarn( msg ); plHelpDrvOpts( acc_opt ); plexit( "" ); } where drvp->option is "backend" at this point thanks -- Pedro Vicente ped...@sp... http://www.space-research.org/ |