From: Alan W. I. <ir...@be...> - 2006-10-17 20:20:59
|
On 2006-10-17 21:56+0200 Werner Smekal wrote: >> Important question: do you get that same error message about undefined >> symbol on Cygwin for the hpgl.so case? If so, then in your case libltdl >> is >> finding and reading hpgl.so properly, and it should be straightforward to >> fix the symbol problem. > > > I only have a hpgl.so file no hpgl or another one. Both calls > > ./get-drv-info hpgl > Could not open driver module hpgl > libltdl error: No such file or directory > > ./get-drv-info hpgl.so > Could not open driver module hpgl.so > libltdl error: No such file or directory OK, it sounds like libltdl is too smart and demands what it thinks is the correct suffix for each platform so my proposed fix will not work. > So libltdl doesn't find the module at all. .so seems to be the wrong > extension for cygwin - I think, since all shared library in cygwin end with > .dll, that .dll would be the right extension. I just renamed hpgl.so to > hpgl.dll and this also doesn't work. I believe when hpgl.so is built it contains its own (so)name so that a simple rename will not work. Let's see what CMake feels is the correct module extension on Cygwin. To do that temporarily remove the line SUFFIX ".so" from drivers/CMakeLists.txt. I have not tried this removal before since I was concerned that CMake and libltdl would have different ideas about the correct platform extensions, but let us find out. (Be sure to start with an empty build tree.) That removal may solve all your problems, but if not then the other possibility is to make up a fake *.la file for each device following whatever ABS does for each platform. We know that approach worked on Cygwin for get-drv-info with our ABS. But I hope we can avoid that *.la complication. 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 Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |