I am having a great deal of trouble getting TCL/TK to work with PLplot.

In the following, the stuff in /opt/local/ is from MacPorts,  
installed by me, and the stuff in /System/Library/Frameworks/ is  
installed by Apple.


With _no_ /opt/local/bin:/opt/local/sbin path appended to the front  
of PATH in ~.profile and with _no_ /opt/local/lib/libtcl.dylib:/opt/ 
local/lib/libtk.dylib appended to CMAKE_LIBRARY_PATH in my PLplot  
build script, this appears during the build phase. Note that the TCL  
version referenced is 8.4.

-- 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_TCLSH = /usr/bin/tclsh
-- HAVE_TCL_GT_84 = 0
-- TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers
-- TCL_LIBRARY = /System/Library/Frameworks/tcl.framework
-- TK_INCLUDE_PATH = /System/Library/Frameworks/Tk.framework/Headers;/ 
usr/include
-- TK_LIBRARY = /System/Library/Frameworks/tk.framework;/usr/X11R6/ 
lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/ 
libX11.dylib;/usr/X11R6/lib/libXext.dylib

When trying to run x01c with tk selected, this message appears:
RegisterProcess failed (error = -50)

and the program hangs requiring Control-C to quit.



After installing the MacPorts version of TCL and TK (in /opt/local/)  
and modifying paths as such:

With /opt/local/bin:/opt/local/sbin appended to the front of PATH in  
~/.profile and /opt/local/lib/libtcl.dylib:/opt/local/lib/libtk.dylib  
appended to the end of CMAKE_LIBRARY_PATH, this appears. The  
referenced TCL version is 8.5.3 or something like that.

-- 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_TCLSH = /opt/local/bin/tclsh
-- HAVE_TCL_GT_84 = 1
-- TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers
-- TCL_LIBRARY = /System/Library/Frameworks/tcl.framework
-- TK_INCLUDE_PATH = /System/Library/Frameworks/Tk.framework/Headers;/ 
usr/include
-- TK_LIBRARY = /System/Library/Frameworks/tk.framework;/usr/X11R6/ 
lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/ 
libX11.dylib;/usr/X11R6/lib/libXext.dylib

This appears to be a "mixed" situation where the tclsh is from  
MacPorts and the includes are from /System/Library/Frameworks/. The  
wiki for OS X at http://www.miscdebris.net/plplot_wiki/index.php? 
title=Mac_OSX indicates that this can be a problem with cmake but  
suggests no cure.

The results when trying to run x01c with tk selected are the same as  
above:
RegisterProcess failed (error = -50)

Earlier, I was able to at least get what I think was a wish window to  
open but with nothing displayed in it except for a couple of menus.  
Now, after reinstalling some stuff (e.g. MacPorts from scratch), I  
can't even get that to happen. FWIW, in the progress of trying to get  
things to work, I also upgraded Xcode from 2.4 to 2.5. (I can  
downgrade easily.)

Jerry
























-- 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_TCLSH = /opt/local/bin/tclsh
-- HAVE_TCL_GT_84 = 1
-- TCL_INCLUDE_PATH = /System/Library/Frameworks/Tcl.framework/Headers
-- TCL_LIBRARY = /System/Library/Frameworks/tcl.framework
-- TK_INCLUDE_PATH = /System/Library/Frameworks/Tk.framework/Headers;/ 
usr/include
-- TK_LIBRARY = /System/Library/Frameworks/tk.framework;/usr/X11R6/ 
lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/ 
libX11.dylib;/usr/X11R6/lib/libXext.dylib


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to