<div dir="ltr">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)<div><br></div><div>So, adding</div>
<div><br></div><div><div>    INCLUDE_DIRECTORIES(BEFORE ${TK_INCLUDE_PATH}/../xlib)</div></div><div><br></div><div><div class="gmail_extra">to VTK/Rendering/CMakeLists.txt fixed things.</div><div class="gmail_extra"><br></div>
<div class="gmail_extra">hth someone.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Goodwin</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 10:02 PM, Goodwin Lawlor <span dir="ltr"><<a href="mailto:goodwin.lawlor.lists@gmail.com" target="_blank">goodwin.lawlor.lists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>I'm building VTK (5.10.1 and Nightly) on Mac OS X 10.7.5</div>
<div><br></div><div>I'm building static libs with Tcl wrappers (v8.5.13 and v8.6).</div><div>
<br></div><div>The build fails on vtkTkRenderWidget with</div><div><br></div><div><div>In file included from /Users/GoodwinLawlor/code/VTK/Rendering/vtkTkRenderWidget.cxx:35:</div><div>In file included from /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkInt.h:19:</div>

<div>In file included from /Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkPort.h:25:</div><div>In file included from /Users/GoodwinLawlor/code/tcltk/tk8.6/macosx/tkMacOSXPort.h:56:</div><div>/Users/GoodwinLawlor/code/tcltk/tk8.6/generic/tkIntXlibDecls.h:380:16: error: conflicting types for 'XKeycodeToKeysym'</div>

<div>EXTERN KeySym           XKeycodeToKeysym(Display *d, KeyCode k, int i);</div><div>                        ^</div><div>/usr/include/X11/Xlib.h:1694:15: note: previous declaration is here</div><div>extern KeySym XKeycodeToKeysym(</div>

<div><br></div><div>I've got VTK_USE_X = 0 and VTK_USE_COCOA = 1</div><div><br></div><div>Basically, tkIntXlibDecls.h is declaring the same types as Xlib.h</div><div><br></div><div>Grateful for any hints before going grepping...</div>

<div><br></div><div>Thanks,</div><div><br></div><div>Goodwin</div><div><br></div><div><br></div><div><br></div></div></div>
</blockquote></div><br></div></div></div>