AW: [vtkusers] Compiling under Cygwin

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Mar 3 10:58:28 EST 2004


Jürgen,

	See my comments interlaced.

Juergen.Schuck at materna.de wrote:
> Mathieu,
> 
> here are the various logs of make (tail) in chronological order.
> My final CMakeCache.txt comes at last.
> 
> *** make log start ***
> ...
> Building object file vtkXMLFileOutputWindowJava.o...
> Building object file vtkWin32OutputWindowJava.o...
> Building object file vtkJavaUtil.o...
> /usr/src/vtk-src-unix/Common/vtkJavaUtil.cxx:35:22: mapiform.h: No such file

How did you install java on cygwin ? I think you are missing some files.


> In file included from
> /usr/src/vtk-src-unix/Rendering/vtkTkRenderWidget.cxx:34:
> /usr/src/tcltk-20030901-1/tk/win/tkWinInt.h:21:19: tkInt.h: No such file or

Did you read VTK/README.html, especially the cygwin part about tcl/tk 
installation ?

<quote>
For Tcl/Tk support, you have to install the cygwin sources for Tcl/Tk, 
then set
the TK_*_PATH variables to apropriate locations. For example if the TCL/TK
cygwin version you have is 20030214-1, then set the following options:


TK_INCLUDE_PATH 
/usr/src/tcltk-20030214-1/tk/generic/;/usr/src/tcltk-20030214-1/tcl/generic/
TK_INTERNAL_PATH /usr/src/tcltk-20030214-1/tk/win/
TK_XLIB_PATH /usr/src/tcltk-20030214-1/tk/xlib
</quote>


> *** make log start ***
> ...
> Building object file vtkHybridInstantiator.o...
> Building shared library /usr/src/vtk-src-unix/bin/libvtkHybrid.dll...
> vtkHybridInstantiator.o(.text+0x4bc):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushImageFilterSampleNew()'
> vtkHybridInstantiator.o(.text+0x4d2):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushImageReaderNew()'
> vtkHybridInstantiator.o(.text+0x4e8):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushPipelineNew()'
> vtkHybridInstantiator.o(.text+0x81e):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushImageFilterSampleNew()'
> vtkHybridInstantiator.o(.text+0x834):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushImageReaderNew()'
> vtkHybridInstantiator.o(.text+0x84a):vtkHybridInstantiator.cxx: undefined
> reference to `vtkInstantiatorvtkPushPipelineNew()'


This I agree is a problem. You need to apply this patch (this is fixed 
in VTK 4.2.3 and upper):

http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Hybrid/CMakeLists.txt.diff?r1=1.87&r2=1.88





HTH
Mathieu





More information about the vtkusers mailing list