On 2010-05-09 09:36+0200 Werner Smekal wrote: > 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).
But test-drv-info is located in the same build-tree drivers subdirectory as the plug-in device drivers that it is testing. For example, here is the story on Linux for xwin: softw...@raven> ls /home/software/plplot_svn/HEAD/build_dir/drivers/xwin.so /home/software/plplot_svn/HEAD/build_dir/drivers/xwin.so* This is the relevant fragment of the the output from "make VERBOSE=1 test_dyndrivers" cd /home/software/plplot_svn/HEAD/build_dir/drivers && ./test-drv-info xwin > /home/software/plplot_svn/HEAD/build_dir/drivers/test_dyndrivers_dir/xwin.rc So according to your dll location criteria above, all should be well for finding the device-driver plug-ins. I guess there is a possibility that on the Windows side of things test-drv-info is not being executed in the build-tree drivers subdirectory or the dynamic device plug-ins are not located there. Could you please check that? I am now also wondering if there is some issue with ltdl_win32.c (the special code you wrote to dynamically load devices on Windows) such that it does not find the plug-in when it is in the same directory. Could you check that as well? I will also check both those issues for MinGW/MSYS on Wine, but that may be a special case so checking on a "real" windows platform would be a good idea as well. N.B. Remember that for such checking the test_dyndrivers target is only executed if you run it explicitly, or run the all or install targets. I plan to improve dependencies so that if you build a device it will get immediately checked by test-drv-info, but that hasn't happened yet. 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