You are not logged in.

#1 2016-09-11 22:25:02

cvarin
Member
Registered: 2010-11-05
Posts: 7

tcl wrapping in vtk6 does not work

With the current installation of vtk6, issuing "package require vtk" in tclsh gives the following error:

couldn't load file "/opt/vtk6/lib/libvtkCommonCoreTCL-6.3.so": /opt/vtk6/lib/libvtkCommonCoreTCL-6.3.so: cannot open shared object file: No such file or directory
attempt to provide package vtkCommonCoreTCL 6.3 failed: no version of package vtkCommonCoreTCL provided
attempt to provide package vtkcommoncore 6.3 failed: no version of package vtkcommoncore provided
attempt to provide package vtk 6.3 failed: no version of package vtk provided

The package provides "/opt/vtk6/lib/libvtkCommonCoreTCL.so".

This comes from an improper 'libFile' definition in /opt/vtk6/lib/tcltk/vtk-6.3/pkgIndex.tcl. The problem is with line 10

    set libFile [file join $libPath "$libPrefix$libName-6.3$libExt"]

If I remove the "-6.3", i.e., replacing line 10 by

   set libFile [file join $libPath "$libPrefix$libName$libExt"]

It works fine.

Offline

Board footer

Powered by FluxBB