[vtkusers] MacOS X, Tcl/Tk, & vtk

Lee A. Butler butler at ARL.ARMY.MIL
Tue Sep 17 12:36:30 EDT 2002


Andy,

Thanks for the reply.  I'm still running into a couple of problems.  No doubt
due mostly to the new compiler and differences in Jaguar.  Could you comment?

Summary:
	1 It isn't clear that cmake builds correctly, as "make install" fails
	2 cmake -i doesn't generate Makefiles for Wrapping/Tcl dirs
	3 make dies compiling vtkAbstractMapper.cxx complaining that:
	  cc1plus: unrecognized option `-fno-coalesce-static-vtables'

Item 1: 	
	I think I got cmake to build, though the "make install" fails saying
that "Source/cmaketest" does not exist.  It installs a "cmake" in
/usr/local/bin, so I pressed on.

Item 2:
	Running "cmake -i" in the VTK directory I get the prompt from CMAKE:
		"Would you like to see advanced options? [No]:"
typing a single return here never generates a response (nor does typing "No"
followed by a single return).  It takes a second return to set things going.
This looks like Jaguar broke something in cmake's tty handling.

	At the CMAKE_CXX_FLAGS option I add the includes you specified
(thanks!).  Everything seems to proceed up to the point where I turn
VTK_WRAP_TCL on.  At this point CMAKE goes off and creates the Makefiles
without prompting for any information about Tcl and Tk that I was asked about
under Linux.  Suspicious, especially since it does NOT indicate that it is
building the Wrapping/Tcl/...Makefiles.

Item 3:

	Just for grins, I ran the "make" to see what I'd get.  The compilation
stops with the attempt to compile vtkAbstractMapper.cxx complaining that:

	  cc1plus: unrecognized option `-fno-coalesce-static-vtables'

OK, this is just an out-of-date compiler flag.  I delete that from
vtkCMakeOptions.cmake, re-run cmake -i, and try to compile.  It fails trying
to build bin/ObjectFactory complaining that there are Undefined symbols:

	c++  -fno-coalesce-templates ObjectFactory.o  -L/Users/butler/src/VTK/vtk40/VTK/bin -lpthread -lm -lvtkCommon -lvtkCommon -lpthread -lm  -o /Users/butler/src/VTK/vtk40/VTK/bin/ObjectFactory
	ld: Undefined symbols:
	vtkOutputWindowDisplayDebugText(char const*)
	vtkOutputWindowDisplayGenericWarningText(char const*)
	vtkCollection::GetNumberOfItems()
	vtkDebugLeaks::PromptUserOff()
	vtkObjectFactory::HasOverride(char const*)
	...

There were also some warnings when trying to compile:
	Rendering/vtkQuartzGLView.mm

At this point it would be nice to have a little guidance on how to proceed.

Lee A. Butler					E-Mail: butler at arl.army.mil
Attn: AMSRL-SL-BE				Phone: (410) 278-9200
U.S. Army Research Laboratory			DSN:	     298-9200
Aberdeen Proving Ground, MD  21005-5068		FAX:   (410) 278-5058

As nightfall does not come at once, neither does oppression.  In both
instances, there is a twilight when everything remains seemingly unchanged.
And it is in such twilight that we all must be most aware of change in the
air--however slight--lest we become unwitting victims of the darkness.
--- Justice William O. Douglas



On 16 Sep 2002, Andy Cedilnik wrote:

> Hello Lee,
> 
> The procedure is this:
> 
> Compile Tcl/Tk. Move Tcl.framework and Tk.framework to
> /Library/Frameworks. Then get VTK and in CMake add the following things:
> 
> CMAKE_CXX_FLAGS
> -I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
> -I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
> -I/Library/Frameworks/Tk.framework/Headers
> TCL_INCLUDE_PATH /Library/Frameworks/Tcl.framework/Headers
> TK_INCLUDE_PATH /Library/Frameworks/Tk.framework/Headers
> TCL_LIBRARY -framework Tcl
> TK_LIBRARY -framework Tk
> 
> Now you should be able to just say make.
> 
> Make sure to run this after the build is done:
> 
> mkdir VTK-bin/bin/vtk.app/Contents/MacOS
> cp VTK-bin/bin/vtk VTK-bin/bin/vtk.app/Contents/MacOS
> /Developer/Tools/Rez -t APPL Carbon.r -o
> VTK-bin/bin/vtk.app/Contents/MacOS/vtk
> 
> This will setup resources for the vtk executable.
> 
> 			Andy
> 
> 
> On Mon, 2002-09-16 at 13:23, Lee A. Butler wrote:
> > Has anyone looked at getting VTK up and running under Jaguar with Tcl/Tk 8.4?
> > I've gotten Tcl/Tk to compile and install, but I'm new to VTK.  Is there
> > anyone with experience building VTK under OSX that could talk me through the
> > build?
> 
> 
> 




More information about the vtkusers mailing list