loading vtk libraries into vtk

David Gobbi dgobbi at irus.rri.on.ca
Thu Dec 9 11:08:02 EST 1999


Hi Miguel,

There is an (undocumented) method for loading vtk into wish:

cd vtk/tcl
make vtktcl

This will build a 'vtktcl' extension.  You must copy it into tcl's
search path, which generally includes /usr/lib, /usr/local/lib, or
whichever 'lib' directory tcl is installed in.  It generally does
not include the current directory.  To load it, use

load vtktcl

If you get an error, then vtktcl (note that it does not have a '.so'
on the end) is probably not installed in the right place.

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Thu, 9 Dec 1999, Miguel Angel Martin Fernandez wrote:

> Hello,
> 
> 	I'm trying to load dinamically a library into vtk with tcl, using
> the tcl command load. For example, I'm compiling vtk2.4 without the option
> --with-local, and then I compile the library libVTKLocalTcl.so and try
> to load it dinamically into vtk (tcl/tk program). I obtain an error:
> 
> couldn't load file "libVTKLocalTcl.so":
> /usr/local/lib/libVTKLocalTcl.so: undefined symbol: __11vtkMyClass
> 
> being vtkMyClass the name of the class I've put in local library.
> 
> 	If I compile with the option --with-local, I don't obtain the same
> error although loading it again (it's already linked in the vtk program).
> 
> 	I don't know why is this happening because in previous versions of
> VTK this didn't happen (at least until 2.2 version).
> 
> 	Does anybody know (especially vtk authors) how can I avoid this
> error without using --with-local option?
> 
> 
> 	Any help will be very wellcome.
> 
> 	Thanx in advance. 
> 
> 		Miguel.
> 
>                   -----------------------------------
>                      Miguel Ángel Martín Fernández
>                           ETSI Telecomunicaion
>                        Universidad de Valladolid
>                          Campus Miguel Delibes 
>                     e-mail: miguel at atenea.tel.uva.es
>                       Tfono: 983-423000 ext: 25548
>                   -----------------------------------
> 
> 
> 
> -----------------------------------------------------------------------------
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list