[vtkusers] Problems Installing VTK on Ubuntu 9.10 with Python/TK

Aashish Chaudhary aashish.chaudhary at kitware.com
Mon Dec 21 18:51:28 EST 2009


I vaguely remember this error when I was trying to compile on Ubuntu 9.10.

when you run ccmake make sure your tcl and tk are pointing to the right
versions (8.4) (in advance mode). Once you set both of them to the correct
versions the problem should go away.

~Regards
Aashish


On Mon, Dec 21, 2009 at 5:49 PM, Amber Simpson <
amber.l.simpson at vanderbilt.edu> wrote:

> Hi All,
>
> I'm trying to install VTK on Ubuntu 9.10 (Karmic Koala) with Python
> 2.5 and TCL/TK 8.4. I'm getting this error when I execute
> TestTkRenderWidget.py from the examples:
>
> Traceback (most recent call last):
>  File "TestTkRenderWidget.py", line 13, in <module>
>    class TestTkRenderWidget(Testing.vtkTest):
>  File "TestTkRenderWidget.py", line 20, in TestTkRenderWidget
>    root = Tkinter.Tk()
>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1652, in __init__
>    self._loadtk()
>  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1672, in _loadtk
>    % (_tkinter.TK_VERSION, tk_version)
> RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
>
> Any suggestions?
>
> Further details on my install follow.
>
> Thanks,
>
> Amber
>
> --
> Amber Simpson
> Postdoctoral Fellow
> Biomedical Modeling Laboratory
> Department of Biomedical Engineering
> Vanderbilt University
>
>
> ------------------------------------
>
> Ubuntu: 9.10 (fresh install)
> CMake 2.4 (for legacy reasons)
> VTK 5.4.2
> TCL/TK 8.4 (for legacy reasons)
> Python 2.5 (for legacy reasons)
>
> Other install notes:
>
> I changed the default python version in Ubuntu to 2.5 by editing
> /usr/share/python/debian_defaults and modifying the /usr/bin/python
> symlink to point to python2.5 instead of python2.6. 'python -v'
> confirms that the change was successful.
>
> CMakeCache.txt is attached.
>
> My .bashrc contains:
> PATH=/usr/local/share/VTK-build/bin:${PATH}
> export PATH
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/share/VTK-build/bin
> export
> PYTHONPATH=/usr/local/lib/python2.5/site-packages:/usr/local/share/VTK-build/Wrapping/Python/vtk
>
>
> Output of 'ldd vtk' on VTK-build/bin is:
>
>        linux-vdso.so.1 =>  (0x00007fff1593f000)
>        libvtkCommonTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkCommonTCL.so.5.4
> (0x00007f1f5d7e7000)
>        libvtkFilteringTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkFilteringTCL.so.5.4
> (0x00007f1f5d2e3000)
>        libvtkGraphicsTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkGraphicsTCL.so.5.4
> (0x00007f1f5cd21000)
>        libvtkImagingTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkImagingTCL.so.5.4
> (0x00007f1f5c9be000)
>        libvtkIOTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkIOTCL.so.5.4 (0x00007f1f5c5f1000)
>        libvtkRenderingTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkRenderingTCL.so.5.4
> (0x00007f1f5c12f000)
>        libvtkVolumeRenderingTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkVolumeRenderingTCL.so.5.4
> (0x00007f1f5be9e000)
>        libvtkHybridTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkHybridTCL.so.5.4
> (0x00007f1f5bb24000)
>        libvtkWidgetsTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkWidgetsTCL.so.5.4
> (0x00007f1f5b74e000)
>        libvtkGeovisTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkGeovisTCL.so.5.4
> (0x00007f1f5b4de000)
>        libvtkInfovisTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkInfovisTCL.so.5.4
> (0x00007f1f5b1e2000)
>        libvtkViewsTCL.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkViewsTCL.so.5.4
> (0x00007f1f5af9a000)
>        libtk8.4.so.0 => /usr/lib/libtk8.4.so.0 (0x00007f1f5ac9e000)
>        libtcl8.4.so.0 => /usr/lib/libtcl8.4.so.0 (0x00007f1f5a9d6000)
>        libvtkVolumeRendering.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkVolumeRendering.so.5.4
> (0x00007f1f5a18a000)
>        libvtkGeovis.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkGeovis.so.5.4
> (0x00007f1f59e9a000)
>        libvtkproj4.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkproj4.so.5.4 (0x00007f1f59c44000)
>        libvtkViews.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkViews.so.5.4 (0x00007f1f599be000)
>        libvtkInfovis.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkInfovis.so.5.4
> (0x00007f1f59537000)
>        libvtklibxml2.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtklibxml2.so.5.4
> (0x00007f1f59186000)
>        libm.so.6 => /lib/libm.so.6 (0x00007f1f58f02000)
>        libvtkalglib.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkalglib.so.5.4
> (0x00007f1f58ce3000)
>        libvtkWidgets.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkWidgets.so.5.4
> (0x00007f1f5883e000)
>        libvtkHybrid.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkHybrid.so.5.4
> (0x00007f1f5823d000)
>        libvtkexoIIc.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkexoIIc.so.5.4
> (0x00007f1f57fd7000)
>        libvtkRendering.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkRendering.so.5.4
> (0x00007f1f577a4000)
>        libvtkftgl.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkftgl.so.5.4
> (0x00007f1f57595000)
>        libvtkfreetype.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkfreetype.so.5.4
> (0x00007f1f572f5000)
>        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f1f5711d000)
>        libXt.so.6 => /usr/lib/libXt.so.6 (0x00007f1f56eb7000)
>        libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f1f56cae000)
>        libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f1f56a93000)
>        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f1f5675d000)
>        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f1f5654b000)
>        libXss.so.1 => /usr/lib/libXss.so.1 (0x00007f1f56347000)
>        libXft.so.2 => /usr/lib/libXft.so.2 (0x00007f1f56132000)
>        libvtkGraphics.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkGraphics.so.5.4
> (0x00007f1f55645000)
>        libvtkverdict.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkverdict.so.5.4
> (0x00007f1f5540e000)
>        libvtkImaging.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkImaging.so.5.4
> (0x00007f1f54d70000)
>        libvtkIO.so.5.4 => /usr/local/share/VTK-build/bin/libvtkIO.so.5.4
> (0x00007f1f5457d000)
>        libvtkDICOMParser.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkDICOMParser.so.5.4
> (0x00007f1f54339000)
>        libvtkNetCDF.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkNetCDF.so.5.4
> (0x00007f1f540f4000)
>        libvtkmetaio.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkmetaio.so.5.4
> (0x00007f1f53e07000)
>        libvtksqlite.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtksqlite.so.5.4
> (0x00007f1f53b8f000)
>        libvtkpng.so.5.4 => /usr/local/share/VTK-build/bin/libvtkpng.so.5.4
> (0x00007f1f5395b000)
>        libvtktiff.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtktiff.so.5.4
> (0x00007f1f536ed000)
>        libvtkzlib.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkzlib.so.5.4
> (0x00007f1f534d3000)
>        libvtkjpeg.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkjpeg.so.5.4
> (0x00007f1f532a6000)
>        libvtkexpat.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkexpat.so.5.4 (0x00007f1f53076000)
>        libvtkFiltering.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkFiltering.so.5.4
> (0x00007f1f529c3000)
>        libvtkCommon.so.5.4 =>
> /usr/local/share/VTK-build/bin/libvtkCommon.so.5.4
> (0x00007f1f523bb000)
>        libvtksys.so.5.4 => /usr/local/share/VTK-build/bin/libvtksys.so.5.4
> (0x00007f1f52157000)
>        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1f51f3b000)
>        libdl.so.2 => /lib/libdl.so.2 (0x00007f1f51d37000)
>        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f1f51a27000)
>        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f1f51810000)
>        libc.so.6 => /lib/libc.so.6 (0x00007f1f514a1000)
>        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x00007f1f5017b000)
>        libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1
> (0x00007f1f5dced000)
>        libuuid.so.1 => /lib/libuuid.so.1 (0x00007f1f4ff76000)
>        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f1f4fd5a000)
>        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f1f4fb57000)
>        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1
> (0x00007f1f4f925000)
>        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f1f4f6a0000)
>        libz.so.1 => /lib/libz.so.1 (0x00007f1f4f489000)
>        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f1f4f27f000)
>        /lib64/ld-linux-x86-64.so.2 (0x00007f1f5dc07000)
>        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f1f4f07a000)
>        libexpat.so.1 => /lib/libexpat.so.1 (0x00007f1f4ee51000)
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091221/3daf8eff/attachment.htm>


More information about the vtkusers mailing list