Thanks, Orion, for your itcl testing. On 2007-03-26 10:32-0600 Orion Poplawski wrote:
> I've finally managed to enable iTcl with my fedora builds, and am > getting the following error in the tests: > > 8/ 13 Testing examples_tcl > Test command: /bin/bash -c > EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.7.3/fedora/examples\ > SRC_EXAMPLES_DIR=/builddir/build/BUILD/plplot-5.7.3/examples\ > PLPLOT_LIB=/builddir/build/BUILD/plplot-5.7.3/data/\ ./plplot-test.sh\ > --device=psc\ --front-end=tcl > Testing front-end tcl > application-specific initialization failed: Can't find a usable itcl.tcl > in the following directories: > /usr/share/itcl3.3 > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../lib/itcl3.3 > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../lib64/itcl3.3 > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../library > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../../library > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../../itcl/library > /builddir/build/BUILD/plplot-5.7.3/fedora/examples/../utils/../../../itcl/library > This probably means that Itcl/Tcl weren't installed properly. > If you know where the Itcl library directory was installed, > you can set the environment variable ITCL_LIBRARY to point > to the library directory. > > I can fix with: > > export ITCL_LIBRARY=/usr/lib/itcl3.3 > > How is this handled on different platforms? Is ITCL_LIBRARY set > automatically by the itcl package (which seems reasonable)? All the itcl build logic is handled by cmake/modules/tcl-related.cmake. I found a bug there which I just fixed. This bug should not have made any difference for itcl installs that are in standard locations (since after looking at the nonsensical path I just fixed, the buggy version would fall back to the standard install path). However, this bugfix should be critical for non-standard itcl install locations. If you continue to have itcl trouble, please let us know all the tcl-related cmake output. There is lots of useful information there, e.g., [EMAIL PROTECTED]> grep -i tcl cmake.out -- Looking for include paths and libraries for Tcl/Tk -- Looking for include paths and libraries for Tcl/Tk - found -- Looking for tclsh -- Looking for tclsh - found -- TCL_INCLUDE_PATH = /usr/include/tcl8.4 -- TCL_LIBRARY = /usr/lib/libtcl8.4.so -- Looking for itcl.h -- Looking for itcl.h - found -- Looking for itcl library -- Looking for itcl library - found -- ITCL_INCLUDE_PATH = /usr/include/tcl8.4 -- ITCL_LIBRARY = /usr/lib/libitcl3.2.so -- TK_INCLUDE_PATH = /usr/include/tcl8.4;/usr/include;/usr/include;/usr/include -- ITK_INCLUDE_PATH = /usr/include/tcl8.4 running /home/software/cmake/install/bin/cmake -E create_symlink /home/software/plplot_cvs/HEAD/plplot_cmake/doc/docbook/src/tcl.xml /home/software/plplot_cvs/HEAD/build_dir/doc/docbook/src/tcl.xml 2>&1 TCL_DIR /home/software/plplot_cvs/installcmake/share/plplot5.7.3/tcl ENABLE_tcl: ON ENABLE_itcl: ON A potentially confusing issue is our internal CMake variable ITCL_LIBRARY is the full path + library name while the ITCL_LIBRARY environment variable that itcl understands and which you set to work around our CMake build system issues on your platform looks like it is a pure path without the file name. However, if our internal ITCL_LIBRARY variable as output from cmake is set correctly, I don't think you should need to set the ITCL_LIBRARY environment variable. If you continue to have itcl trouble, then you may want to append something to the key CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH variables to help cmake find the correct itcl headers and libraries on your platform. If that doesn't work, then perhaps an additional tweak to the logic in tcl-related.cmake is needed, but it looks okay to me now. > > Also, what is added by enabling itcl? > It's an added object oriented feature that gives more power to Tcl (and presumably our Tcl interface to PLplot), but I don't know the details. Maurice and Geoffrey are our experts in this area. 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 __________________________ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
