[vtk-developers] Mac OS X Build failure
Goodwin Lawlor
goodwin.lawlor.lists at gmail.com
Mon Feb 25 21:17:26 EST 2013
Looking at the Tk Makefile, it seems that when building static libs with
Aqua you have to force the inclusion of Xlib.h from the Tk source tree (ie,
from the tk/xlib directory)
So, adding
INCLUDE_DIRECTORIES(BEFORE ${TK_INCLUDE_PATH}/../xlib)
to VTK/Rendering/CMakeLists.txt fixed things.
hth someone.
Goodwin
On Mon, Feb 25, 2013 at 10:02 PM, Goodwin Lawlor <
goodwin.lawlor.lists at gmail.com> wrote:
> Hi All,
>
> I'm building VTK (5.10.1 and Nightly) on Mac OS X 10.7.5
>
> I'm building static libs with Tcl wrappers (v8.5.13 and v8.6).
>
> The build fails on vtkTkRenderWidget with
>
> In file included from
> /Users/GoodwinLawlor/code/VTK/Rendering/vtkTkRenderWidget.cxx:35:
> In file included from
> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkInt.h:19:
> In file included from
> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkPort.h:25:
> In file included from
> /Users/GoodwinLawlor/code/tcltk/tk8.6/macosx/tkMacOSXPort.h:56:
> /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkIntXlibDecls.h:380:16:
> error: conflicting types for 'XKeycodeToKeysym'
> EXTERN KeySym XKeycodeToKeysym(Display *d, KeyCode k, int i);
> ^
> /usr/include/X11/Xlib.h:1694:15: note: previous declaration is here
> extern KeySym XKeycodeToKeysym(
>
> I've got VTK_USE_X = 0 and VTK_USE_COCOA = 1
>
> Basically, tkIntXlibDecls.h is declaring the same types as Xlib.h
>
> Grateful for any hints before going grepping...
>
> Thanks,
>
> Goodwin
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130226/f77ff1bc/attachment.html>
More information about the vtk-developers
mailing list