Alan W. Irwin writes: > On 2010-05-12 18:55-0500 Geoffrey Furnish wrote: > > > Alan W. Irwin writes: > > > Just for completeness could you also show us the results of > > > > > > ls $HOME/devel/8.4/prefix/lib > > > > > > ? > > > > % ls $HOME/devel/8.4/prefix/lib > > libtcl8.4.so libtk8.4.so tcl8.4 tk8.4 > > libtclstub8.4.a libtkstub8.4.a tclConfig.sh tkConfig.sh > > > > > It is possible the whole issue is caused by $HOME. The shell should > > > translate that properly for the ls command, but I wonder if it is doing > > > that for the cmake -D option? Anyhow, if ls shows the proper libraries > > > and headers are in the proper locations, I would try (a) expanding $HOME > > > by hand for the cmake option and if that doesn't work (b) use the > > > environment variable approach which I know works for me. > > > > Mmmm. The shell expands $HOME for all commands, nothing special about > > cmake (or ls) in this case. However, just for completeness: > > > > % rm -rf * > > % cmake -DCMAKE_INSTALL_PREFIX=/home/furnish/devel/8.4/prefix > > -DCMAKE_PREFIX_PATH=/home/furnish/devel/8.4/prefix .. |& tee cmake.out > > > Finally: > > > > % rm -rf * > > % export CMAKE_INSTALL_PREFIX=/home/furnish/devel/8.4/prefix > > % export CMAKE_PREFIX_PATH=/home/furnish/devel/8.4/prefix > > % cmake .. |& tee cmake.out > > ... > > Geoffrey, I should have been more specific in the test I requested. Please > use the combination of the environment variables CMAKE_INCLUDE_PATH and > CMAKE_LIBRARY_PATH pointed to the correct locations. As I have just > demonstrated, that combination should work fine. And that combination has > worked fine since CMake-2.4.x days. > > Please run the test with no interference from CMAKE_PREFIX_PATH which is > something I have not tested. I realize somebody else suggested it in this > thread as a possibility, and as far as I can tell from the documentation it > _should_ work in the limited case where you have your headers installed in > the include directory rather than subdirectories of include. But let's test > with a case that I _know_ works for me to give a perfect Tcl/Tk/itcl/itk > result.
Alright, I think I have what you're asking for. I can't bear all this manual typing, so I've retreated to my old habits (of recording it in a script). Here's the script: % cat ../run_cmake #!/bin/sh rm -rf * env CMAKE_INSTALL_PREFIX=$HOME/devel/8.4/prefix \ CMAKE_INCLUDE_PATH=$HOME/devel/8.4/prefix/include \ CMAKE_LIBRARY_PATH=$HOME/devel/8.4/prefix/lib \ cmake .. |& tee cmake.out And here's the result of running it: % ../run_cmake ... -- Looking for include paths and libraries for Tcl/Tk -- Found Tclsh: /home/furnish/devel/8.4/prefix/bin/tclsh -- Found TCL: /usr/lib64/libtcl.so -- Found TCLTK: /usr/lib64/libtcl.so -- Found TK: /usr/lib64/libtk.so -- Looking for include paths and libraries for Tcl/Tk - found -- Looking for tclsh -- Looking for tclsh - found -- TCL_TCLSH = /home/furnish/devel/8.4/prefix/bin/tclsh -- TCL_INCLUDE_PATH = /home/furnish/devel/8.4/prefix/include -- TCL_LIBRARY = /usr/lib64/libtcl.so -- Itcl not available or not compatible with current Tcl shell -- TK_INCLUDE_PATH = /home/furnish/devel/8.4/prefix/include;/usr/include -- TK_LIBRARY = /usr/lib64/libtk.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so Again, same wrong result. To humor you further, here's another take on the script (with $HOME manually substituted): % cat ../run_cmake #!/bin/sh rm -rf * env CMAKE_INSTALL_PREFIX=/home/furnish/devel/8.4/prefix \ CMAKE_INCLUDE_PATH=/home/furnish/devel/8.4/prefix/include \ CMAKE_LIBRARY_PATH=/home/furnish/devel/8.4/prefix/lib \ cmake .. |& tee cmake.out % ../run_cmake ... -- Looking for include paths and libraries for Tcl/Tk -- Found Tclsh: /home/furnish/devel/8.4/prefix/bin/tclsh -- Found TCL: /usr/lib64/libtcl.so -- Found TCLTK: /usr/lib64/libtcl.so -- Found TK: /usr/lib64/libtk.so -- Looking for include paths and libraries for Tcl/Tk - found -- Looking for tclsh -- Looking for tclsh - found -- TCL_TCLSH = /home/furnish/devel/8.4/prefix/bin/tclsh -- TCL_INCLUDE_PATH = /home/furnish/devel/8.4/prefix/include -- TCL_LIBRARY = /usr/lib64/libtcl.so -- Itcl not available or not compatible with current Tcl shell -- TK_INCLUDE_PATH = /home/furnish/devel/8.4/prefix/include;/usr/include -- TK_LIBRARY = /usr/lib64/libtk.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so Still wrong. -Geoff ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel