I spent all day today trying to get vtk and mayavi to build on cygwin because of a cannot find "libvtkRenderingPythonTkWidgets.dll" error. I finally got it to work somewhat on accident, and since the maillist postings regarding similar-sounding errors served to confuse me all day (they were mostly the results of different problems, but did point me to the right files), I thought I should post my solution in case anyone else has the same problem.
After building vtk 5.0.2 from source and installing mayavi under cygwin,
I initially got the following output on invoking "mayavi" at the bash prompt:
[EMAIL PROTECTED] /usr/src/MayaVi- 1.5/MayaVi-1.5
$ mayavi
Traceback (most recent call last):
File "/usr/bin/mayavi", line 317, in ?
app = MayaViTkGUI (r)
File "/usr/lib/python2.4/site-packages/mayavi/Main.py", line 1009, in __init__
self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame)
File "/usr/lib/python2.4/site-packages/mayavi/Misc/RenderWindow.py", line 89, in __init__
height=505)
File "/usr/src/vtk- 5.0.2/VTK/Wrapping/Python/vtk/tk/vtkTkRenderWidget.py", line 81, in __init__
vtkLoadPythonTkWidgets(master.tk )
File "/usr/src/vtk-5.0.2/VTK/Wrapping/Python/vtk/tk/vtkLoadPythonTkWidgets.py", line 63, in vtkLoadPythonTkWidgets
interp.call('load', filename)
_tkinter.TclError: couldn't load library "libvtkRenderingPythonTkWidgets.dll": this library or a dependent library could not be found in library path
To fix:
First (did this because a post said to, but not sure if it is necessary):
Added blahblah/VTK/Wrapping/Python/ and blahblah/VTK/bin/ to PYTHONPATH environment variable
Added blahblah/VTK/bin/ to PATH environment variable
Second (What got things to work after a day):
On line 21 of blahblah/VTK/Wrapping/Python/vtk/tk/vtkLoadPythonTkWidgets.py, change prefix from "lib" to "cyg". I think the cygwin version of whatever makes dynamic libraries just always uses cyg instead of lib.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ MayaVi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mayavi-users
