[vtk-developers] vtkTkImageWindowWidget.h, patch to vtkTkWidgetsInit.cxx to compile
Charl P. Botha
c.p.botha at its.tudelft.nl
Wed Mar 27 10:49:44 EST 2002
Please see the NEW diff that I've attached. My freshly checked-out VTK did
the following (without the diff):
------ BEGIN
[dutidad:/home/cpbotha/build/VTK/Wrapping/Python]% python vtkRenderWidget.py
Traceback (most recent call last):
File "vtkRenderWidget.py", line 8, in ?
vtkRenderWidgetConeExample()
File "/home/cpbotha/build/VTK/Wrapping/Python/vtkTkRenderWidget.py",
line 416, in vtkRenderWidgetConeExample
pane = vtkTkRenderWidget(root,width=300,height=300)
File "/home/cpbotha/build/VTK/Wrapping/Python/vtkTkRenderWidget.py",
line 65, in __init__
vtkLoadPythonTkWidgets(master.tk)
File
"/home/cpbotha/build/VTK/Wrapping/Python/vtkLoadPythonTkWidgets.py", line
59, in vtkLoadPythonTkWidgets
interp.call('load', filename)
TclError: couldn't load file "libvtkRenderingPythonTkWidgets.so":
/home/cpbotha/build/VTK/bin/libvtkRenderingPythonTkWidgets.so: undefined
symbol: vtkTkImageWindowWidget_Cmd__FPvP10Tcl_InterpiPPc
----- END
On Wed, Mar 27, 2002 at 02:33:24PM +0100, Charl P. Botha wrote:
> It seems vtkTkImageWindowWidget.h has disappeared from the repository, but
> vtkTkWidgetsInit.cxx is still including it. So, to get my checkin of today
> to compile, I had to perform the attached change.
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
-------------- next part --------------
--- vtkTkWidgetsInit.cxx.orig Wed Mar 27 14:29:00 2002
+++ vtkTkWidgetsInit.cxx Wed Mar 27 16:42:03 2002
@@ -18,7 +18,7 @@
#include <tcl.h>
#include <tk.h>
-#include "vtkTkImageWindowWidget.h"
+#include "vtkWin32Header.h"
//----------------------------------------------------------------------------
// Vtkrenderingpythontkwidgets_Init
@@ -29,8 +29,8 @@
int argc, char **argv);
int vtkTkImageViewerWidget_Cmd(ClientData clientData, Tcl_Interp *interp,
int argc, char **argv);
-int vtkTkImageWindowWidget_Cmd(ClientData clientData, Tcl_Interp *interp,
- int argc, char **argv);
+//int vtkTkImageWindowWidget_Cmd(ClientData clientData, Tcl_Interp *interp,
+// int argc, char **argv);
int Vtkrenderingpythontkwidgets_Init(Tcl_Interp *interp)
{
@@ -43,8 +43,8 @@
Tk_MainWindow(interp), NULL);
Tcl_CreateCommand(interp, (char *) "vtkTkImageViewerWidget",
vtkTkImageViewerWidget_Cmd, Tk_MainWindow(interp), NULL);
- Tcl_CreateCommand(interp, (char *) "vtkTkImageWindowWidget",
- vtkTkImageWindowWidget_Cmd, Tk_MainWindow(interp), NULL);
+// Tcl_CreateCommand(interp, (char *) "vtkTkImageWindowWidget",
+// vtkTkImageWindowWidget_Cmd, Tk_MainWindow(interp), NULL);
return TCL_OK;
}
More information about the vtk-developers
mailing list