buidling vtk2.4 with tk8.2.3

Dimitri PAPADOPOULOS-ORFANOS papadopo at shfj.cea.fr
Tue Jan 11 16:41:08 EST 2000


Hi,

I am trying to build vtk2.4 with tk8.2.3. I get the following error
message while linking:

[...]
c++ -o vtk tkAppInit.o \
-L. -g -O2  -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS 
-DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common 
-I/home/papadopo/tk8.2.3/generic -I/home/papadopo/tcl8.2.3/generic 
-DVTK_USE_OGLR -I/usr/openwin/share/include/   -I/usr/openwin/include 
-I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING 
-I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB  
-Wl,-R,/usr/local/vtk-2.4/lib   -L/home/papadopo/vtk2.4/contrib -lVTKContribTcl 
-lVTKContrib  -L/home/papadopo/vtk2.4/patented -lVTKPatentedTcl -lVTKPatented 
-L/home/papadopo/vtk2.4/imaging -lVTKImagingTcl -lVTKImaging 
-L/home/papadopo/vtk2.4/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common 
-lVTKCommonTcl -lVTKCommon -L/usr/openwin/lib -R/usr/openwin/lib 
-L/usr/openwin/lib -lGL -L/usr/local/tk/lib  -ltk8.2 -L/usr/local/tcl/lib 
-ltcl8.2 -ldl -lpthread -lthread \
-L/usr/openwin/lib -R/usr/openwin/lib -lXext -lXt -lSM -lICE -lX11 -lsocket  
-lnsl -lm
/home/papadopo/vtk2.4/graphics/libVTKGraphicsTcl.so: undefined reference to 
`tkMainWindowList'
[...]


The problem is that 'tkMainWindowList' is defined in header
tk8.2.3/generic/tkInt.h like this:

	extern TkMainInfo                *tkMainWindowList;

However this variable is never declared in any Tk *.c file!
Is this a bug in Ttk8.2.3?

This variable is used in graphics/vtkXRenderWindowTclInteractor.cxx:

	extern TkMainInfo *tkMainWindowList;

	// use the same display as tcl/tk
	ren->SetDisplayId(Tk_Display(tkMainWindowList->winPtr));


My platform is:
	Solaris 7/Sparc
	egcs-1.1.2
	vtk2.4
	tcl8.2.3/tk8.2.3

I configured with:
	./configure --with-contrib --with-patented --with-python --with-tcl 
--with-tkwidget --with-shared --prefix=/usr/local/vtk2.4

Any hints on what to do next?

Sorry if this has already been asked, I'm new to this list.



-----------------------------------------------------------------------------
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