-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Alan,
On 5/7/10 6:21 PM, Alan W. Irwin wrote: > On 2010-05-07 08:54+0200 Arjen Markus wrote: > >> Hello all, >> >> I have done some tests wrt the strange error messages I got >> from test-drv-info yesterday. It turns out that the program >> is issuing an error code -1073741515 (completely nonsensical >> of course) when it can not find the driver - the PATH environment >> variable does not contain the directory containing the driver DLLs. > > It appears to me there is a good possibility you discovered a build-system > issue here. If your PATH did not contain the directory where the driver > DLL's are located, how come this was not an issue for running the examples > in the build tree? > > In other words, is the build system doing the right thing with regard to the > driver PATH for running build-tree examples for MinGW, but not for running > test-drv-info? > > Even if there is a mundane explanation for your puzzling results (such as > you had the wrong PATHs set for running test-drv-info, but you corrected > that afterward for running the examples in the build tree), it appears to me > we could make life substantially easier for those using the MinGW platform. > > Anyhow, there is a lot of power in CMake to make life easy for builders > on all platforms. Let's use that power rather than demanding workarounds > from our users such as adding extra paths when CMake might give us > a better solution automatically. The problem is, that in Windows dlls must either be in the same directory as the executable (so test-drv-info must be in this directory as well), or the PATH is set accordingly (this can't be set by cmake, since the changes of cmake to the environment variables only last as long cmake runs - so the changes are not anymore during compile time) or if the dlls are in on of the system directories (no option). > > Assuming you do come up with a build-system fix to make life easier for our > MinGW users, please think as generally as possible. For example, try to > make the fix so that MinGW/MSYS, Cygwin, and bare Windows users benefit as > well as MinGW users. The above considerations are valid generally, not only for MinGW. IMO the best idea is to move the test-drv-info executable in the place where the dlls are. So we get through the compiling stage without problems. The examples won't run, if the PATH wasn't set accordingly though. I think we had the same discussion before with exactly the same conclusion but nobody did the simple change :(. 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 > __________________________ > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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/ iQEcBAEBAgAGBQJL5mXuAAoJEG1QQcXtyvSnZn4H/RHJi0vVqdFpAKQJtH/17otY A2CGsMrzwjNyW4U1xdh3vLImW19C72vVZWkkE5oeyLG5MgiV+NN4qlu5t+PIgv4d iq1w13z6mIQkIDsYcHxkkx+juxXjvHVaCvcZJfjNDzmojrZHuqMfAYRXeb7NTe70 lDq9V9pfmKoaSKN92VoghnUfdiuwPOCw/WUwIb9iZ1moH6gE2j+8LtuwtSBN0rI4 hUiy26+rMhVsFy14uYH2e+4luV3bdPOe2tBaEuerNsG/qCjijTpC5QGDAB1ka2Ii DKrM2i3pCrSupmNULthfP8Yz3bdK1VGaUrL4yJ31RwX8aPPqnoENfolKYKvKtYg= =/ngz -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel