From: Arjen M. <arj...@de...> - 2010-11-08 12:15:28
|
Hello Linda, if you use the NMake generator, it should all work: cmake "plplot-src" -G "NMake Makefiles" -DBUILD_TEST=ON To run the examples you need to expand the path with the "dll" subdirectory. We will have to look into the problem with the Visual Studio generator, but for now this ought to be a useable workaround: for your own programs you can still work with Visual Studio, as you can just link against the various libraries. Regards, Arjen On 2010-11-08 13:04, Arjen Markus wrote: > Hello Linda, > > I have tried it myself - with example x01c - and I get an error > about the drivers directory. I do not know why this is happening. > I am trying now with the NMake generator. This has always been > my preferred way (though the Visual Studio generator has worked > for me in the past). > > I will let you know how I fare with this one. It should work > and if not, something is seriously broken. > > Regards, > > Arjen > > On 2010-11-08 12:21, Linda Rawson wrote: >> Few more steps. >> >> 1. Exit Visual Studio 2008. >> 2. Set a couple of environment variables and act like a VS command prompt >> >> set PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN";%PATH% >> set PATH="C:\Program Files\Microsoft Visual Studio 9.0\VC";%PATH% >> call vcvarsall >> >> Make a new directory (I made the mistake of being in my users directory) >> >> I called mine c:\dev\plplot >> >> cmake "C:/dev/plplot-5.9.7" -G "Visual Studio 9 2008" -DBUILD_TEST=ON >> >> opened up solution plplot.sln >> >> Clicked build >> >> Got the following errors >> Error 1 error PRJ0019: A tool returned an error code from >> "Generating announce-plplot-5.3.1.html" generate_announcements >> generate_announcements >> Error 2 error PRJ0019: A tool returned an error code from >> validate_announcement-5.3.1 validate_announcement-5.3.1 >> Error 3 error PRJ0019: A tool returned an error code from >> validate_announcement-5.3.0 validate_announcement-5.3.0 >> Error 4 error PRJ0019: A tool returned an error code from >> "Generating staging/htdocs/announce/announce-plplot-5.3.1.txt" >> create_staging_announce create_staging_announce >> Error 5 error PRJ0019: A tool returned an error code from >> "Generating staging/htdocs/js/slimbox.js" create_staging >> create_staging >> Error 34 error PRJ0019: A tool returned an error code from >> "Generating test_dyndrivers_dir/wxwidgets.rc" test_wxwidgets_dyndriver >> test_wxwidgets_dyndriver >> Error 43 error PRJ0019: A tool returned an error code from >> "Generating x01c01.svg" test_c_svg test_c_svg >> Error 44 error PRJ0019: A tool returned an error code from >> "Generating x01c.ps" test_c_ps test_c_ps >> Error 45 error PRJ0019: A tool returned an error code from >> test_c_wingcc test_c_wingcc >> Error 46 error PRJ0019: A tool returned an error code from >> test_c_wxwidgets test_c_wxwidgets >> Error 47 error PRJ0019: A tool returned an error code from >> "Generating x01c01.xfig" test_c_xfig test_c_xfig >> >> >> Right clicked on wxPLplotDemo which is the project I want to run >> >> Go the error "The program can't start because plplotwxwidgets.dll is missing >> from your computer. Try reinstalling...." >> >> Finally get everything in my path. For some reason it does not recognize I >> have these things in my path. >> >> Try and run wxPLplotDemo, rebuilds, recompiles, does all kinds of things. >> >> It simply cannot get past this line 210 in the code >> >> plotwindow = new MyPlotwindow( this, panel, -1, wxDefaultPosition, >> wxDefaultSize, wxWANTS_CHARS, >> #if wxUSE_GRAPHICS_CONTEXT >> wxPLPLOT_BACKEND_GC | wxPLPLOT_DRAW_TEXT ); >> #else >> wxPLPLOT_BACKEND_AGG | wxPLPLOT_DRAW_TEXT ); >> #endif >> >> I do not get an access error it simply does absolutely nothing. >> Again...wxWANTS_CHARS is null. It has no idea what you mean by that. >> >> Linda Rawson >> Sensory Technology Consultants >> http://www.sensorytech.net >> Phone: 801-791-9222 | Fax: 888-294-6706 >> Email: lin...@se... >> A Woman-Owned, 8(a) Minority, Small Business >> The NATURAL PROGRESSION to technology, consulting and system integration... >> >> -----Original Message----- >> From: Arjen Markus [mailto:arj...@de...] >> Sent: Monday, November 08, 2010 1:12 AM >> To: Alan W. Irwin >> Cc: Linda Rawson; plp...@li... >> Subject: Re: [Plplot-general] plplot and Visual Studio with WXWidgets >> >> Hi Alan, Linda, >> >> I will have a look at this. >> >> I never heard of "Philrosenberg" either, but indeed, the best if not the >> only way to do multiple builds is by resevering separate directories for >> them. This may not be the common way of working with Visual Studio, as that >> creates subdirectories for each configuration in the directory containing >> the project files, but in my experience with PLplot and CMake it is much >> easier to keep track of things - if only that is easier to delete a complete >> directory and its contents than to remove all the subdirectories one by one. >> >> The first messages about the manifest file are suspicious - they may have >> resulted in the access violation, as at run-time the manifest information is >> queried. >> >> What happens if you simply do: >> >> cmake "plplot dir" -G "Visual Studio 9 2008" -DBUILD_TEST=ON >> >> (replacing "plplot dir" with the directory where you have put the PLplot >> sources)? >> >> Regards, >> >> Arjen >> >> >> On 2010-11-06 22:38, Alan W. Irwin wrote: >>> On 2010-11-06 01:04-0000 Linda Rawson wrote: >>> >>>> I tried the instructions here -> >>>> >>>> http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplo >>>> t_for_Visual_CXX >>> Those instructions have apparently been heavily edited by somebody >>> called Philrosenberg who I have never heard of. I don't have access >>> to Windows, but I know enough from the Linux side of things that I can >>> well believe those directions don't work. >>> >>> Why all these complications with all combinations of >>> -DCMAKE_BUILD_TYPE=Release, -DCMAKE_BUILD_TYPE=Debug, >>> -DBUILD_SHARED_LIBS=ON, and -DBUILD_SHARED_LIBS=OFF? On Linux, I >>> leave CMAKE_BUILD_TYPE unspecified, and also take the default >>> BUILD_SHARED_LIBS=ON. I suspect that one combination will work well >>> for you. However, if you absolutely need to build four versions of >>> PLplot with the four configuration combinations >>> >>> -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON >>> >>> -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF >>> >>> -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON >>> >>> -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF >>> >>> then the four builds should be absolutely independent of each other. >>> That is use a separate initially empty build directory for each one, >>> and use a separate install tree for each one. Mixing various >>> configurations together in the same build tree like he recommends is a >>> recipe for disaster! >>> >>> Could one of our Windows developers edit that page into a form that is >>> much more likely to work? >>> >>> 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); PLplot >>> scientific plotting software package (plplot.org); 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 >>> __________________________ >>> >>> ---------------------------------------------------------------------- >>> -------- The Next 800 Companies to Lead America's Growth: New Video >>> Whitepaper David G. Thomson, author of the best-selling book >>> "Blueprint to a Billion" shares his insights and actions to help >>> propel your business during the next growth cycle. Listen Now! >>> http://p.sf.net/sfu/SAP-dev2dev >>> _______________________________________________ >>> Plplot-general mailing list >>> Plp...@li... >>> https://lists.sourceforge.net/lists/listinfo/plplot-general >>> >> >> >> DISCLAIMER: This message is intended exclusively for the addressee(s) and >> may contain confidential and privileged information. If you are not the >> intended recipient please notify the sender immediately and destroy this >> message. Unauthorized use, disclosure or copying of this message is strictly >> prohibited. >> The foundation 'Stichting Deltares', which has its seat at Delft, The >> Netherlands, Commercial Registration Number 41146461, is not liable in any >> way whatsoever for consequences and/or damages resulting from the improper, >> incomplete and untimely dispatch, receipt and/or content of this e-mail. >> >> >> >> >> >> > > > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. > The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. > > > > > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |