[vtkusers] MacOSX (TCLTK && X11) vtkRenderWidget.o Conflicting Types (Quickdraw.h - X.h, tkIntXlibDecls.h - Xlib.h) ; Errors

Peter Pfister peterpfister at mac.com
Sun Sep 7 17:07:48 EDT 2003


Hi

Trying to compile vtk with TclTk support and X11 enabled for MacOSX.
Is it that combination possible?

I'm getting the following errors: (to avoid overhead is a light version of
the compiling errors)

Building object file vtkTkRenderWidget.o...
In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:42,
                 from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30,
                 from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
                 from /Users/peterpfister/Programming/VTK/Rendering/vtkCarbonRenderWindow.h:30,
                 from /Users/peterpfister/Programming/VTK/Rendering/vtkTkRenderWidget.cxx:40:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:253:
conflicting
   types for `struct Cursor' /usr/X11R6/include/X11/X.h:108: previous
declaration as `typedef XID Cursor'
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:258:
conflicting
   types for `typedef struct Cursor Cursor'
/usr/X11R6/include/X11/X.h:108: previous declaration as `typedef XID
Cursor' In file included from /Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXPort.h:52,
                 from/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkPort.h:32,
                 from/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkInt.h:27,
                 from/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:18,
                 from/Users/peterpfister/Programming/VTK/Rendering/vtkTkRenderWidget.cxx:41:
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkIntXlibDecls.h:659:
declaration
   of C function `void XSetDashes(Display*, _XGC*, int, const char*, int)'
   conflicts with
/usr/X11R6/include/X11/Xlib.h:3792: previous declaration `int
   XSetDashes(Display*, _XGC*, int, const char*, int)' here

...
...
...
and so on many declarations on tkIntXlibDecls.h conflict with declarations
on Xlib.h
...
...
...

Editing declarations on tkIntXlibDecls.h to match the ones on Xlib.h
solves the problems but I really don't know if that's the elegant way to
solve it.

Other errors are the following ones:


In file included from/Users/peterpfister/Programming/VTK/Rendering/vtkTkRenderWidget.cxx:41:
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:20:22:
tkMacOSX.h: No such file or directory In file included from
/Users/peterpfister/Programming/VTK/Rendering/vtkTkRenderWidget.cxx:41:
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:76:
syntax
   error before `*' token
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:77:
syntax
   error before `*' token
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:78:
syntax
   error before `*' token
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:79:
syntax
   error before `*' token
/Users/peterpfister/Programming/VTK/Rendering/tkInternals/tk84OSX/tkMacOSXInt.h:80:
syntax
   error before `*' token make[3]: *** [vtkTkRenderWidget.o] Error 1
make[2]: *** [default_target] Error 2 make[1]: ***
[default_target_Rendering] Error 2 make: *** [default_target] Error 2



For the "File not found" error the file tkMacOSXPort.h was included but I
don't know if that's the correct one.

Could anyone give me a Hint on what to do?


Kind Regards
Peter



More information about the vtkusers mailing list