On 2013-03-12 17:33-0700 phil rosenberg wrote: > Hi Alan, Arjen > I've had some steps forward and some steps back on this. I'll try to go > through it all as logically as possible.
> 1) I tried commenting out the line as you suggested Alan - still got wxString related linker errors. I then tried a fresh build using my patch and got the same linker errors which makes me think that maybe the auto finding of wxWidgets unicode libs never worked in the first place. I hunted through the FindwxWidgets Cmake module and found that I can set the wxWidgets version to compile against as part of the cmake command using -DwxWidgets_CONFIGURATION=mswu. This solved all the wxString linker problems. This works without commenting out the line you suggested so I think you can commit your v2 patch Alan. Done as of revision 12295. However, I may completely revert this change if you or Arjen find any general (non wxwidgets-related) issues with using STATIC_RUNTIME=ON. > 2) Unfortunately there is a big however tagged on the end of this. Although the wxString linker errors were gone I had a series of additional linker errors related to debug functions - similar but not quite the same as those reported by Arjen. It took me some time to find the problem, but when I did find it I realised I had seen the problem before but hadn't reported/documented it and had forgotten about it. This problem exists irrespective of whether Alan's patch is applied -i.e. it is a bug in the current source. The problem is that in the release build the files wxwidgets.cpp, wxwidgets_agg.cpp, wxwidgets_app.cpp, wxwidgets_dc.cpp, wxwidgets_dc.cpp, wxwidgets_gc.cpp and wxPLplotDemo (but not wxPLplotstream.cpp or wxPLplotwindow.cpp) have DEBUG and __WXDEBUG__ added to their preprocessor definitions. This causes the reported link errors and deleting these options allows plplot to build. I'm pushing my Cmake knowledge way past it's boundaries looking into the cause of this. Do either of you have any ideas? wxPLplotstream.cpp and wxPLplotwindow.cpp are compiled in the bindings/wxwidgets directory so it may be that the CMakeLists.txt file for that directory does not do the build there consistently with how it is done in drivers (where wxwidgets.cpp, wxwidgets_agg.cpp, wxwidgets_app.cpp, wxwidgets_dc.cpp, and wxwidgets_gc.cpp are located) and examples/c++ (where wxPLplotDemo.cpp is located). I will look further into that possibility for inconsistency. 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 __________________________ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
