Hi Stuart, which version of cmake and plplot are you using? If you use cmake 2.8 and plplot 5.9.5 this won't work, since changes to the cmake module to find wxwidgets breaks the cmake build system for plplot. You need to get the latest release from svn, or download one of the recent weekly packages here: http://www.miscdebris.net/plplot_weeklies/
On the other hand it is possible to use plplot 5.9.5 and plplot from svn with cmake 2.6.4. HTH, WErner On Jan 6, 2010, at 6:21 PM, Stuart Blood wrote: > I hope this is the right place to report this finding. > > I don't know how to characterize this bug other than as a problem > with compile flags generated by CMake. I'm able to work around it by > hand editing makefiles before running nmake. > > Following the instructions at > http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_Visual_CXX > > : > > On running > cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=install .. > > I find this definition in > buildnmake\bindings\wxwidgets\CMakeFiles\plplotwxwidgetsd.dir > \flags.make: > > # compile CXX with C:/Program Files/Microsoft Visual Studio 8/VC/bin/ > cl.exe > CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR /D_DEBUG /MDd > /Zi /Ob0 /Od /RTC1 -IC:\plplot\include -IC:\plplot\lib\qsastime > -IC:\plplot\bindings\c++ -IC:\plplot\buildnmake > -IC:\plplot\buildnmake\include > -IC:\plplot\buildnmake\bindings\wxwidgets -IC:\wxWidgets\include > -IC:\wxWidgets\lib\vc_dll\mswu WXUSINGDLL UNICODE _UNICODE > > Also, I find lines such as this in > buildnmake\drivers\CMakeFiles\wxwidgets.dir\build.make: > > C:\PROGRA~1\MID05A~1\VC\bin\cl.exe @<< > /nologo $(CXX_FLAGS) -IC:/wxWidgets/include > -IC:/wxWidgets/lib/vc_dll/mswu WXUSINGDLL UNICODE _UNICODE -DUSINGDLL > $(CXX_DEFINES) /TP /FoCMakeFiles\wxwidgets.dir\wxwidgets.cpp.obj > /FdC:\plplot\buildnmake\dll\wxwidgets.pdb -c C:\plplot\drivers > \wxwidgets.cpp > > Note that WXUSINGDLL, UNICODE, _UNICODE should each be preceded by > "-D". When I edit the various makefiles (see below) before running > nmake then I have success. Otherwise nmake fails. > > These are the make files I editted: > buildnmake\bindings\wxwidgets\CMakeFiles\plplotwxwidgetsd.dir > \flags.make > buildnmake\drivers\CMakeFiles\wxwidgets.dir\build.make > buildnmake\drivers\CMakeFiles\wxwidgets.dir\flags.make > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Plplot-general mailing list > Plplot-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-general -- Dr. Werner Smekal Institut fuer Angewandte Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria DVR-Nr: 0005886 email: sme...@iap.tuwien.ac.at web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general