[vtkusers] Problem with TCL in accessing a locally built library.

Amy Henderson amy.henderson at kitware.com
Tue Sep 10 09:01:20 EDT 2002


Take a look at VTK/Examples/Build/vtkMy.  The README in that directory 
explains how to do what you're asking about.

Amy

At 11:53 AM 9/10/2002 +1000, Andrew J. P. Maclean wrote:
>Nope it doesn't solve the problem. I want to access functions in the
>local library the same way as the rest of the vtk functions are
>accessed.
>
>I modified tkAppInit.cxx.in in the folder vtk\wrapping\tcl to include
>Vtklocaltcl_Init() in a similar manner to existing ones in this script.
>This function exists in vtkBin\Local\vtkLocalTclInit.cxx which seems to
>be automatically created by cmake.
>
>The problem now is that when I link the code in VC7 I get a link error
>saying it can't find this function.
>
>So ... How do I tell CMake to link in the correct library ( i.e. what
>commands do I need) ? Do I put these commands in
>vtk/Wrapping/tcl/LocalUserOptions.cmake , or somewhere else?
>
>Perhaps someone has already done this and can offer advice.
>
>I promise I'll write up a set of instructions if I am successful.
>
>
>Thanks
>    Andrew
>
>___________________________________________
>Andrew J. P. Maclean
>Postal:
>Australian Centre for Field Robotics
>The Rose Street Building J04
>The University of Sydney  2006  NSW
>AUSTRALIA
>
>Room:  106
>Phone: +61 2 9351 3283
>Fax:   +61 2 9351 7474
>        http://www.acfr.usyd.edu.au/
>
>___________________________________________
>
>
>-----Original Message-----
>From: vtkusers-admin at public.kitware.com
>[mailto:vtkusers-admin at public.kitware.com] On Behalf Of Andreas Loesch
>Sent: Monday, 9 September 2002 15:02
>To: a.maclean at acfr.usyd.edu.au; vtkusers at public.kitware.com
>Subject: RE: [vtkusers] Problem with TCL in accessing a locally built
>library.
>
>Hi Andrew,
>
> >
> > How do I get TCL to automatically include a locally built vtk
> > library that I have built?
> >
>
>I am not firm in the use of TCL, but it seems that you must add the new
>Directory to the Library-Path for TCL. Refer to the TCL manual for
>additional Library-Directorys
>
>
>HTH, Andreas
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers






More information about the vtkusers mailing list