[vtkusers] MacOSX: fundamental Carbon/Tk/X11 problem
Yves Starreveld
ystarrev at atamai.com
Wed Nov 13 14:46:26 EST 2002
Ross,
No, they don't need X11.
In /Library/Frameworks/Tk.framework/Versions/8.4/Headers, there exists
an X11 directory which contains:
X.h, Xatom.h, Xfuncproto.h, Xlib.h, Xutil.h, cursorfont.h, keysym.h,
keysymdef.h, xbytes.h
When VTK builds with Tcl wrappers, it uses these files when you add
/Library/Frameworks/Headers to the CMakeCache.txt file.
I use the following settings:
//What is the path where the file tcl.h can be found
TCL_INCLUDE_PATH:PATH=/Library/Frameworks/Tcl.framework/Headers;/
Library/Frameworks/Tcl.framework/PrivateHeaders
//Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82,
// tcl8.2, tcl80 or tcl8.0 libraries be found
TCL_LIBRARY:FILEPATH=-framework Tcl
//What is the path where the file tk.h can be found
TK_INCLUDE_PATH:PATH=/Library/Frameworks/Tk.framework/Headers;/Library/
Frameworks/Tk.framework/PrivateHeaders
//Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2,
// tk80 or tk8.0 libraries be found
TK_LIBRARY:FILEPATH=-framework Tk
Yves
On Tuesday, November 12, 2002, at 07:22 PM, Ross Whitaker wrote:
>
>
> Hi Folks,
>
> It seems to me there is a basic problem with getting tcl wrapping with
> a native version (Carbon) of VTK.
>
> All of the versions of tcltk (incl. the most recent) have a line in
> the tk.h file which says:
>
> #include <X11/Xlib.h>
>
> Thus, you need to have some X11 headers in your path. However, those
> headers conflict with all sorts of stuff in Carbon.
>
> It seems odd to me that the tk headers would require X11 (if they are
> meant to run without it).
> The way I see it is
>
> 1) You need X11 headers for tk
> 2) X11 headers conflict with Carbon
> 3) tk and Carbon are incompatible
>
> Obviously, there is a way out of this, because the "Wish Shell" runs.
> Right?
>
> Ross
>
>
> P.S. Please cc me on responses.
>
> --
> Ross T. Whitaker, Assistant Professor
> 50 S. Central Campus Drive, Rm. 3190
> University of Utah
> Salt Lake City, UT 84112-9205
> voice: 801/587-9549, fax: 801/581-5843
> web: www.cs.utah.edu/~whitaker
>
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list