[vtkusers] vtk, python20, TkRenderWidget, Win2000

David Gobbi dgobbi at irus.rri.on.ca
Wed Mar 7 11:28:32 EST 2001

On Wed, 7 Mar 2001, Prabhu Ramachandran wrote:

> hi,
> Okay, so the VTK nightly builds wont work with Python1.5.2 is that
> correct?  If so, then, cant this be mentioned at the download pages.

The VTK nightly builds work with Python 1.5.2 and Python 2.0 under
UNIX and Linux, and with Tcl/Tk 8.0 through 8.3 (probably 8.4 as well,
but I've never tried).

Under Windows you have to play a couple tricks, because the RenderWidgets
(for both Tcl and Python) rely on header files that are not included
with the binary Tcl distribution.  In the standard VTK distribution,
the tcl/tk 8.2 versions of these headers are kept in pcmaker/xlib.
If you want to use any other version of tcl/tk (for example 8.0 for
use with Python1.5.2 or 8.3 for use with Python2.0) then you need to
1) get and install the tcl/tk binaries 
1) under the pcmaker 'Advanced' options specify the paths to the tcl and
   tk libraries
2) get a copy of the tk source, and copy the 'generic', 'win', and 
   'xlib' directories from the source distribution into your binary

Yes, this is ugly.  Also note that unless your tcl/tk version matches the
version of tcl/tk that python was built against, the RenderWidgets will
almost certainly not work under python.

 - David

> It is hard to keep track of things like this even if one is on the
> list then think of folks who arent on the list and who want to run VTK
> quickly, I am sure there are a lot of them. :) Please dont be offended
> by my tone I am not criticizing anyone personally but I am sure you'll
> agree with my sentiments.
> How about the linux builds?  Is there a problem with Tk8.2 or not?  Do
> we need to update the web pages?  There are so many users of VTK I am
> sure someone wont mind helping with build related pages, updating the
> web pages etc.  I believe the Kitware folks must be really busy with
> all their projects, since this is an OSS venture, users helping with
> things like this will be a useful thing for Kitware.  What do you
> folks think?
> thanks,
> prabhu
> _______________________________________________
> 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