[vtkusers] cygwin build of VTK successful but exits on package require vtk

Netherway, David David.Netherway at dsto.defence.gov.au
Sun Mar 19 18:12:04 EST 2006


> Hello vtkusers,
> 
> I have been able to build vtk (cvs version from 17 Mar 2006) but as
> soon as I type "package require vtk" vtk exits.
> 
> The build options selected were to
> BUILD_SHARED_LIBS
> and to 
> VTK_WRAP_TCL
> 
> Other relevent settings were 
> TCL_LIBRARY:FILEPATH=/usr/lib/libtcl.a
> TCL_TCLSH:FILEPATH=/usr/bin/tclsh
> TK_INCLUDE_PATH:PATH=/usr/include
> TK_INTERNAL_PATH:PATH=/usr/local/src/VTK_060317/VTK/Utilities/TclTk/in
> ternals/tk8.4
> TK_LIBRARY:FILEPATH=/usr/lib/libtk.a
> TK_XLIB_PATH:PATH=/usr/src/tcltk-20060202-1/tk/xlib
> 
> The problem seems to be with tcltk.
> "package require vtkgraphics" returns "5.1" as expected.
> But "package require vtkrendering" causes vtk to exit.
> 
The patchlevel (for tcltk) is as follows:
./vtk
info patchlevel
8.4.1

TCLLIBPATH=/usr/local/src/VTK_060317/VTK/Wrapping/Tcl


> I have tried a few variations unsuccessfully. I have yet to try
> actually building tcl/tk under cygwin as when I went down that path I
> wound up trying to build under mingw. That was also unsuccessful.
> (Even though I managed to build tcltk under mingw.)
> 
> 
> Using an earlier version of vtk (14 Feb 2006) I managed to get
> "package require vtk" to not exit by commenting out the two lines:
> ::vtk::rendering::SetWin32ExitCallback
> in 
> VTK/Wrapping/Tcl/vtkrendering/vtkrendering.tcl
> But then the package would die on
> package require vtkinteraction
> 
> Has anyone successfully successfully used vtk with tcltk after
> building under cygwin?
> 
> "make test" seems to run sucessfully with only a few failed tests.
> These failed tests do not appear to be relevent:
> 
> 97% tests passed, 15 tests failed out of 477
> 
> The following tests FAILED:
>          56 - TestClipHyperOctree (Failed)
>          57 - TestHyperOctreeContourFilter (Failed)
>          58 - TestHyperOctreeCutter (Failed)
>          59 - TestHyperOctreeDual (Failed)
>          60 - TestHyperOctreeSurfaceFilter (Failed)
>          61 - TestHyperOctreeToUniformGrid (Failed)
>          63 - BoxClipPolyData (Failed)
>          66 - TestHierarchicalBoxPipeline (Failed)
>          68 - UnstructuredGridGradients (Failed)
>          69 - UnstructuredGridCellGradients (Failed)
>         248 - TestGenericProbeFilter (Failed)
>         254 - HeaderTesting-Imaging (Failed)
>         330 - PrintSelf-Imaging (Failed)
>         331 - TestSetObjectMacro-Imaging (Failed)
>         357 - TestHyperOctreeIO (Failed)
> Errors while running CTest
> make: *** [test] Error 8
> 
> There is also a side question in that running vtk from a cygwin xterm
> does not allow commands to be typed into the console whereas running
> vtk from the initial cygwin prompt does allow commands to be typed.
> (There is the same behaviour with wish as well so it is not
> specifically a vtk issue.)
> 
> I hope someone can help with this as it has been something I have been
> coming back to over the last month and am still unsuccessful.
> 
> Thanks, David
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060320/5fb85cca/attachment.htm>


More information about the vtkusers mailing list