-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
> > Werner, your combined knowledge of windows and CMake makes you the obvious > candidate to ask Windows-related questions in an informed way on the CMake > list. Therefore, would you please ask on that list whether there is a way > for cmake to set up Windows builds to allow dll's to be found or is it a > necessity to externally set the PATH? If a executable is run and a dll is needed, Windows looks first in the current directory for the dll. Then in the PATH. Then in c:\windows\system32 (and in some other system directories. Maybe PATH comes later, but this doesn't matter). Since we don't want to copy the dlls multiple times, our only chance is to change the PATH environment variable. I just read the cmake documentation about setting environment variables (http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set) and it should be possible to change the PATH variable that way. Presumably only as long as the Terminal window is open (so at least for the cmake configure stage). If you close the terminal, start it again this change is surely gone and I assume, if you then compile plplot (which is already configured) PATH won't be changed again, so you run into problems again. So this is no solution. Actually there are two problems. 1) plplot build is not finished, since testing the rc files fails, due to the "missing" dlls. I would suggest that for windows we force that the test-drv-info executable will be built into the dll folder (where for windows all dlls are gathered). Therefore the build gets through (since the dlls are in the same folder than test-drv-info). 2) The examples don't run, since the dlls are not found. Now you need to either set the PATH variable or copy the dlls. User interaction is needed, the dlls are in the dll directory and the examples are in the examples directory, and this shouldn't be changed. So IMO the best we can do is, that in summary.cmake we add at the end a message (with many !!!!!) if it's a shared build on Windows and examples are built as well, the user is asked to add the dll directory to the PATH variable. I believe the most Windows developers know about what to do, if they run a program and a message box pops up telling him that the dll is missing. Still not perfect, but on the other hand it's not possible to cover everything. If the user wants to compile his own executables, he *must* take care of the dlls anyway. So if he doesn't RTFM it's best he gets into trouble trying to run the examples already. It would be more confusing if the examples run and his own programs not. Regards, Werner > > 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 > __________________________ > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel - -- Dr. Werner Smekal Institut fuer Angewandte Physik Technische Universitaet Wien Wiedner Hauptstr 8-10/134 A-1040 Wien Austria DVR-Nr: 0005886 email: sme...@iap.tuwien.ac.at (GPG: EDCAF4A79) 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJLcwt0AAoJEG1QQcXtyvSnysAH/2er6WreXtol6WecBiPdMWMa U0v1E2C3iDtHyP00XOwvLFPepAF3fyqRdEkobaK3Wh1JcGllWvSRrrfkL3uEByIg 08Cx+bEhiMk8CF35W59bp7QbyLrEKT1XAMGLbAy53OUBYNW5usxcFB6DGJzq63B8 chkl6xNAAgOA0rBvUuNhdBeo38Bin1Ai5npJkJ1Sz4SCL1S6aXyi5SjThaZMiNyk 0B/bgxIhT7OI4hLUf4+Ug22GptnmdxGBWFVpRJE68aupe7a5knspRWDTAXirDTdf E6td7yJhoiA/y7DWe1PrCphYLTkXKCGBvCvWGZLGggxC2eri8wBS3wJl8YtBtkY= =ecTY -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel