[vtkusers] problem with Python wrap build on windows XP

David Cole david.cole at kitware.com
Tue Nov 18 16:30:18 EST 2008


If you are installing binaries of tcl and python then you will probably have
to use the Microsoft compiler tools. If you can build them from source, you
can try to build tcl and python with the mingw compiler...

All the libraries you need to link into the same program should generally be
produced by the same linker... and the typical tcl and python binary
packages ship with libraries produced by the Microsoft compiler/linker.

You could use Visual C++ Express Edition instead of the mingw compiler.
Or you could try building tcl/python from source with the mingw compiler.


Hope this halps,
David


On Tue, Nov 18, 2008 at 4:17 PM, Mary Lou Knack <mlknack at gmail.com> wrote:

>  HALP!!!!
>
> Can anybody help me?  I'm getting the following error when I run
> "mingw32-make install" under windows.  I have very recent installs of Cmake
> 2.6.2,  MinGW 5.1.4, ActiveTCL 8.5.5, Python 2.5.2, and I downloaded the VTK
> 5.2.0 source and data zip files.  I used most of the defaults in CMakeSetup
> except changing the Python Wrap, build shared libraries, and build
> examples to "ON".  My paging file (swap space?) under windows computer
> properties is set to the maximum 3048MB.
>
> [...]
> [ 76%] Built target vtkRenderingPythonD
> [ 76%] Built target vtkRenderingPython
> Linking CXX shared library ..\bin\libvtkRenderingPythonTkWidgets.dll
> Creating library file: ..\bin\libvtkRenderingPythonTkWidgets.dll.a
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkRenderWidgetPython.obj:vtkTkRend
> erWidgetPython.cxx:(.text+0x18a1): undefined reference to
> `_imp__TkWinChildProc@
> 16'
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkRenderWidgetPython.obj:vtkTkRend
> erWidgetPython.cxx:(.text+0x18db): undefined reference to
> `_imp__TkWinChildProc@
> 16'
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkRenderWidgetPython.obj:vtkTkRend
> erWidgetPython.cxx:(.text+0x1a0c): undefined reference to
> `_imp__TkWinChildProc@
> 16'
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkRenderWidgetPython.obj:vtkTkRend
> erWidgetPython.cxx:(.text+0x1a46): undefined reference to
> `_imp__TkWinChildProc@
> 16'
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkImageViewerWidgetPython.obj:vtkT
> kImageViewerWidgetPython.cxx:(.text+0xa6d): undefined reference to
> `_imp__TkWinC
> hildProc at 16'
>
> CMakeFiles\vtkRenderingPythonTkWidgets.dir\vtkTkImageViewerWidgetPython.obj:vtkT
> kImageViewerWidgetPython.cxx:(.text+0xbbd): more undefined references to
> `_imp__
> TkWinChildProc at 16' follow
> collect2: ld returned 1 exit status
> mingw32-make[2]: *** [bin/libvtkRenderingPythonTkWidgets.dll] Error 1
> mingw32-make[1]: ***
> [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all]
> Error 2
> mingw32-make: *** [all] Error 2
>
> I have never tried to build anything under windows before (and am many
> years away from using Unix) so I may be missing something obvious.  Any
> suggestions are appreciated.
>
> Mary Lou Knack
>
> PS The purpose of this build is to enable the installation of Enthought's
> ETS tools.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081118/45e2bcc2/attachment.htm>


More information about the vtkusers mailing list