VTK2.4 with Tcl/Tk8.2

Volpe, Christopher R (CRD) volpecr at crd.ge.com
Tue Oct 5 12:48:17 EDT 1999


I use NT, not IRIX, so I can't address your specific problem, but I have started recently using
Tcl/Tk 8.2 with VTK. One problem I encountered is that the binary libraries in the Tcl/Tk
distribution don't have all the symbols that they should have. When I built Tcl/Tk from the source
distribution, that problem was resolved. (Although I use NT now, I come from a unix background, so I
diagnosed the problem with the "nm" command in the cygwin package.) I also built vtk with TclTk 8.2
on Win95, but I was unable to build TclTk 8.2 itself on 95 (something about the shell spawned by the
nmake program not recognizing the "md" make directory command, and then some other problem I don't
remember the details for), so I copied the libs I built on NT. So, if you're using pre-built
libraries for IRIX (I don't even know if scriptics supplies these libraries for IRIX, so maybe the
point is moot), you might try building it from source.

Chris
________________________________________
Christopher R. Volpe
Computer Scientist
Computer Graphics & Systems Program
GE Corporate Research & Development
Bldg KW, Room C215
P.O. Box 8, Schenectady, NY 12301

e-mail: volpecr at crd.ge.com    
web: http://www.crd.ge.com/~volpecr
(518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981


|> -----Original Message-----
|> From: Lakshmi Sastry [mailto:ls at inf.rl.ac.uk]
|> Sent: Tuesday, October 05, 1999 12:20 PM
|> To: vtkusers at gsao.med.ge.com
|> Cc: ls at inf.rl.ac.uk
|> Subject: VTK2.4 with Tcl/Tk8.2
|> 
|> 
|> 
|> Hello,
|> 
|> I have just started using VTK. I downloaded vtk2.4 and want 
|> to build it wit=
|> h
|> Tcl/Tk8.2 for a Silicon Graphics Onyx machine running 
|> IRIX6.5. My build
|> fails at the point described blow. Can anyone advice me what 
|> I am doing=20
|> incorrectly (e.g. should I be using an earlier version of Tcl/Tk).
|> 
|> I am also including my user.make
|> 
|> Many thanks in advance,
|> Lakshmi Sastry
|> 
|> 
|>  rm -f libVTKContribTcl.so
|>         CC  -g -DHAVE_SETMON  -DVTK_WORDS_BIGENDIAN  
|> -DVTK_USE_PTHREADS -pt=
|> all -no_prelink  -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H 
|> -DHAVE_UNISTD_H -I.  =
|>  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging 
|> -DVTK_USE_IMAGING -I=
|> ./../patented -DVTK_USE_PATENTED -I./../contrib 
|> -DVTK_USE_CONTRIB  -DVTK_US=
|> E_OGLR     -I./../common 
|> -I/home/vsguser/ls/tcltk/tk8.2.0/generic -I/home/v=
|> sguser/ls/tcltk/tk8.2.0/unix  
|> -I/home/vsguser/ls/tcltk/include -I/home/vsgu=
|> ser/ls/tcltk/tcl8.2.0/generic 
|> -I/home/vsguser/ls/tcltk/tcl8.2.0/unix  -I/ho=
|> me/vsguser/ls/tcltk/include    -shared -rdata_shared -o \
|>         libVTKContribTcl.so \
|>         tcl/ContribInit.o  tcl/vtkDEMReaderTcl.o  
|> tcl/vtkEarthSourceTcl.o  =
|> tcl/vtkImageResliceTcl.o  tcl/vtkIVWriterTcl.o  
|> tcl/vtkMassPropertiesTcl.o =
|>  tcl/vtkOBJReaderTcl.o  tcl/vtkProjectedTextureTcl.o  
|> tcl/vtkRenderLargeIma=
|> geTcl.o  tcl/vtkRIBExporterTcl.o  tcl/vtkRIBLightTcl.o  
|> tcl/vtkRIBPropertyT=
|> cl.o  tcl/vtkSuperquadricTcl.o  
|> tcl/vtkSuperquadricSourceTcl.o  tcl/vtkSubd=
|> ivideTetraTcl.o  tcl/vtkCellDerivativesTcl.o  
|> tcl/vtkCubeAxesActor2DTcl.o  =
|> tcl/vtkSurfaceReconstructionFilterTcl.o=20
|>         cd tcl;        make - vtk
|>         CC -g  -DHAVE_SETMON  -DVTK_WORDS_BIGENDIAN  
|> -DVTK_USE_PTHREADS -pt=
|> all -no_prelink  -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H 
|> -DHAVE_UNISTD_H -I.  =
|> -I./../common -I/home/vsguser/ls/tcltk/tk8.2.0/generic 
|> -I/home/vsguser/ls/t=
|> cltk/tk8.2.0/unix  -I/home/vsguser/ls/tcltk/include 
|> -I/home/vsguser/ls/tclt=
|> k/tcl8.2.0/generic -I/home/vsguser/ls/tcltk/tcl8.2.0/unix  
|> -I/home/vsguser/=
|> ls/tcltk/include  -DVTK_USE_TKWIDGET -DVTK_USE_OGLR     
|> -I./../graphics -DV=
|> TK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING 
|> -I./../patented -DVTK_USE_=
|> PATENTED -I./../contrib -DVTK_USE_CONTRIB  -c -o tkAppInit.o 
|> ./tkAppInit.cx=
|> x
|> cc-1174 CC: WARNING File == ./tkAppInit.cxx, Line == 118
|>   The variable "main" was declared but never referenced.
|> 
|>     Tk_Window main;
|>               ^
|> 
|>         CC -o vtk tkAppInit.o \
|>         -L. -g  -DHAVE_SETMON  -DVTK_WORDS_BIGENDIAN  
|> -DVTK_USE_PTHREADS -p=
|> tall -no_prelink  -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H 
|> -DHAVE_UNISTD_H -I. =
|>  -I./../common -I/home/vsguser/ls/tcltk/tk8.2.0/generic 
|> -I/home/vsguser/ls/=
|> tcltk/tk8.2.0/unix  -I/home/vsguser/ls/tcltk/include 
|> -I/home/vsguser/ls/tcl=
|> tk/tcl8.2.0/generic -I/home/vsguser/ls/tcltk/tcl8.2.0/unix  
|> -I/home/vsguser=
|> /ls/tcltk/include  -DVTK_USE_TKWIDGET -DVTK_USE_OGLR     
|> -I./../graphics -D=
|> VTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING 
|> -I./../patented -DVTK_USE=
|> _PATENTED -I./../contrib -DVTK_USE_CONTRIB          
|> -L/usr/ral/vtk/contrib =
|> -lVTKContribTcl -lVTKContrib     -L/usr/ral/vtk/patented 
|> -lVTKPatentedTcl -=
|> lVTKPatented  -L/usr/ral/vtk/imaging -lVTKImagingTcl 
|> -lVTKImaging     -L/us=
|> r/ral/vtk/graphics -lVTKGraphicsTcl -lVTKGraphics  
|> -L../common -lVTKCommonT=
|> cl -lVTKCommon   -lGL  -L/home/vsguser/ls/tcltk/lib 
|> -L/home/vsguser/ls/tclt=
|> k/lib/tk8.2  /home/vsguser/ls/tcltk/lib/libtkstub8.2.a 
|> -L/home/vsguser/ls/t=
|> cltk/lib -L/home/vsguser/ls/tcltk/lib/tcl8.2  
|> /home/vsguser/ls/tcltk/lib/li=
|> btclstub8.2.a   -lpthread \
|>          -lXext -lXt -lSM -lICE -lX11  -lm
|> ld32: WARNING 84 : /home/vsguser/ls/tcltk/lib/libtkstub8.2.a 
|> is not used fo=
|> r resolving any symbol.
|> ld32: WARNING 84 : 
|> /home/vsguser/ls/tcltk/lib/libtclstub8.2.a is not used f=
|> or resolving any symbol.
|> ld32: ERROR   33 : Unresolved text symbol "Tcl_CreateInterp" 
|> -- 1st referen=
|> ced by tkAppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: ERROR   33 : Unresolved text symbol "Tk_MainEx" -- 1st 
|> referenced by =
|> tkAppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: ERROR   33 : Unresolved text symbol "Tcl_Init" -- 1st 
|> referenced by t=
|> kAppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: ERROR   33 : Unresolved text symbol "Tk_Init" -- 1st 
|> referenced by tk=
|> AppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: ERROR   33 : Unresolved text symbol "Tcl_SetVar" -- 
|> 1st referenced by=
|>  tkAppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: ERROR   33 : Unresolved text symbol "matherr" -- 1st 
|> referenced by tk=
|> AppInit.o.
|>         Use linker option -v to see when and which objects, 
|> archives and ds=
|> os are loaded. =20
|> ld32: INFO    152: Output file removed because of error.
|> 
|> 
|> ---------------------user.make-------------------------------
|> ------------
|> # this file can be used to override any of the values selected
|> # by configure in system.make.  At a minimum you should set
|> # the following Tcl/Tk values if you are planning to use Tcl/Tk
|> 
|> TCL_INCLUDE==-I/home/vsguser/ls/tcltk/tcl8.2.0/generic 
|> -I/home/vsguser/ls/t=
|> cltk/tcl8.2.0/unix \
|> -I/home/vsguser/ls/tcltk/include
|> TCL_LIB==-L/home/vsguser/ls/tcltk/lib 
|> -L/home/vsguser/ls/tcltk/lib/tcl8.2 \
|> /home/vsguser/ls/tcltk/lib/libtclstub8.2.a
|> 
|> TK_INCLUDE==-I/home/vsguser/ls/tcltk/tk8.2.0/generic 
|> -I/home/vsguser/ls/tcl=
|> tk/tk8.2.0/unix \
|> -I/home/vsguser/ls/tcltk/include
|> TK_LIB==-L/home/vsguser/ls/tcltk/lib 
|> -L/home/vsguser/ls/tcltk/lib/tk8.2 \
|> /home/vsguser/ls/tcltk/lib/libtkstub8.2.a
|> 
|> #MESA_INCLUDE==-I/home/martink/storage/Mesa-1.2.6/include
|> #MESA_LIB==/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/
|> libMesaGL.a
|> 
|> # for python you must set this=20
|> #PYTHON_INCLUDES==-I/home/schroede/montnaro/Python-1.4/Include
|> 
|> # Add additional CFLAGS and CXXFLAGS for compilation
|> # uncomment the following two lines to set your own flags
|> #USER_CFLAGS == =20
|> #USER_CXXFLAGS ===20
|> 
|> # if you want to try the java support you'll need to set the 
|> following
|> # variables to match your environment and uncomment them
|> #
|> #JDKHOME==/home/calvin/content/ITL/java-packages/dev-kits/JDK/jdk1.1
|> #JAVAC==${JDKHOME}/bin/javac
|> #JAVA_CLASS_HOME==/home/martink/java
|> #JAVAH==${JDKHOME}/bin/javah
|> #JAVA_INCLUDES==-I${JDKHOME}/include -I${JDKHOME}/include/solaris
|> #JAVA_CXX_LIB==/common/software/g++-2.7.1/sun4/5.4/lib/libibe
|> rty.a /common/=
|> software/g++-2.7.1/sun4/5.4/lib/libstdc++.a 
|> /common/software/g++-2.7.1/sun4=
|> /5.4/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/libgcc.a
|> 
|> 
|> 
|> 
|> 
|> 
|> =============================================================
|> ===========
|> 
|> Dr. Lakshmi Sastry		 	 Phone: +44 1235 446892
|> Rutherford Appleton Laboratory	 	 Fax  : +44 1235 445945
|> Chilton, Didcot  				 	
|> OX11 0QX				 Email: M.Sastry at rl.ac.uk
|> United Kingdom
|> 
|> =============================================================
|> ============
|> 
|> 
|> -------------------------------------------------------------
|> ----------------
|> 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