On 2009-06-17 22:41-0500 Geoffrey Furnish wrote: > Hi guys, > > I'm having trouble compiling plplot on Fedora 11. I am at rev 10054.
> Oh, and just for grins: > > % ls ~/F11/icf/lib/libt* > /home/furnish/F11/icf/lib/libtcl8.4.so > /home/furnish/F11/icf/lib/libtclstub8.4.a > /home/furnish/F11/icf/lib/libtk8.4.so > /home/furnish/F11/icf/lib/libtkstub8.4.a > > So, it seems that plplot, with cmake 2.6.4, is wrongly concluding that even > though the tcl executables are at ~/F11/icf/bin, and the headers at > ~/F11/icf/include, and the corresponding libs are at ~/F11/icf/lib, > nevertheless, it wants to use the libs in /usr/lib64. And the above link line > shows that the lib search path is wrongly directed to /usr/lib64 before > pulling in -ltcl and -ltk. > > Any suggestions on how to counteract this, and get back to where cmake uses > the CMAKE_INSTALL_LIBDIR for resolving the needed libraries? > > Thanks for any hints/help. Hi Geoffrey: CMake finds all the Tcl/Tk components using the logic in $prefix/share/cmake-2.6/Modules/FindTCL.cmake where $prefix is the installation prefix for the CMake install. Where it searches is controlled by the CMake variable TCLTK_POSSIBLE_LIB_PATHS. It looks like that list of paths includes references to the locations where tclsh and wish are found. >From what you said, those should be on your PATH so it appears something is going wrong with the CMake logic to relate library location and header files to the location of tclsh and wish. I suggest you use the "message(...) command on the components of TCLTK_POSSIBLE_LIB_PATHS to see what the exact problem is. Assuming you find an obvious bug in the logic, then it should be reported to the CMake developers so that future versions of CMake do not have the problem. Meanwhile, we could copy your patched FindTCL.cmake to cmake/modules in the PLplot source tree so it will work for all our users from then on without them having to modify their system version of FindTCL.cmake or wait for the first release of CMake that includes your bugfix. 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 __________________________ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel