<div dir="ltr">Hi Reuben,<div><br></div><div>Working with the Apple's Tk framework is tricky, Apple provides a tweaked version of Tk 8.5 that has some bits of 8.6 backported into it. So you have to use the tk-private headers from the Xcode SDK:</div><div><br></div><div><span style="font-size:12.8px">TK_INTERNAL_PATH:PATH=</span>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Headers/tk-private/<br></div><div><br></div><div>Cheers,</div><div> - David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 31, 2017 at 6:57 PM, Reuben Kraft <span dir="ltr"><<a href="mailto:reuben.kraft@gmail.com" target="_blank">reuben.kraft@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks. When I make that change in the configuration, I get a different error having to do with CONST86. Is there another option I need to set? Latest CmakeCache file attached.<div><br></div><div>Thanks,</div><div><br><div><br></div><div><br></div><div>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/OpenGL2/Testing/Cxx/<wbr>CMakeFiles/<wbr>vtkRenderingOpenGL2CxxTests.<wbr>dir/TestVBOPointsLines.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/OpenGL2/Testing/Cxx/<wbr>CMakeFiles/<wbr>vtkRenderingOpenGL2CxxTests.<wbr>dir/TestValuePass.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/OpenGL2/Testing/Cxx/<wbr>CMakeFiles/<wbr>vtkRenderingOpenGL2CxxTests.<wbr>dir/TestValuePass2.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/OpenGL2/Testing/Cxx/<wbr>CMakeFiles/<wbr>vtkRenderingOpenGL2CxxTests.<wbr>dir/TestCubeMap2.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Linking CXX executable ../../../../bin/<wbr>vtkRenderingOpenGL2CxxTests.<wbr>app/Contents/MacOS/<wbr>vtkRenderingOpenGL2CxxTests</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">[ 68%] Built target vtkRenderingOpenGL2CxxTests</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/Tk/CMakeFiles/<wbr>vtkRenderingTkTCL.dir/<wbr>vtkTclTkWidgetsInit.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s1">[ 68%] </span><span class="m_-1697371138716574608gmail-s2">Building CXX object Rendering/Tk/CMakeFiles/<wbr>vtkRenderingTkTCL.dir/<wbr>vtkTkRenderWidget.cxx.o</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">In file included from /Users/rhk12/code/vtk/<wbr>Rendering/Tk/<wbr>vtkTkRenderWidget.cxx:34:</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">In file included from /Users/rhk12/code/vtk/<wbr>ThirdParty/TclTk/internals/<wbr>tk8.6/tkInt.h:991:</span></p>
<p class="m_-1697371138716574608gmail-p3"><span class="m_-1697371138716574608gmail-s2">/Users/rhk12/code/vtk/<wbr>ThirdParty/TclTk/internals/<wbr>tk8.6/tkIntDecls.h:103:8: </span><span class="m_-1697371138716574608gmail-s3">error: </span><span class="m_-1697371138716574608gmail-s2">unknown type name 'CONST86'</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr,</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s2"> ^</span></p>
<p class="m_-1697371138716574608gmail-p3"><span class="m_-1697371138716574608gmail-s2">/Users/rhk12/code/vtk/<wbr>ThirdParty/TclTk/internals/<wbr>tk8.6/tkIntDecls.h:103:16: </span><span class="m_-1697371138716574608gmail-s3">error: </span><span class="m_-1697371138716574608gmail-s2">expected unqualified-id</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr,</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s2"> ^</span></p>
<p class="m_-1697371138716574608gmail-p3"><span class="m_-1697371138716574608gmail-s2">/Users/rhk12/code/vtk/<wbr>ThirdParty/TclTk/internals/<wbr>tk8.6/tkIntDecls.h:166:8: </span><span class="m_-1697371138716574608gmail-s3">error: </span><span class="m_-1697371138716574608gmail-s2">unknown type name 'CONST86'</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">EXTERN CONST86 char * TkKeysymToString(KeySym keysym);</span></p>
<p class="m_-1697371138716574608gmail-p1"><span class="m_-1697371138716574608gmail-s2"> ^</span></p>
<p class="m_-1697371138716574608gmail-p3"><span class="m_-1697371138716574608gmail-s2">/Users/rhk12/code/vtk/<wbr>ThirdParty/TclTk/internals/<wbr>tk8.6/tkIntDecls.h:166:16: </span><span class="m_-1697371138716574608gmail-s3">error: </span><span class="m_-1697371138716574608gmail-s2">expected unqualified-id</span></p>
<p class="m_-1697371138716574608gmail-p2"><span class="m_-1697371138716574608gmail-s2">EXTERN CONST86 char * TkKeysymToString(KeySym keysym);</span></p></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 31, 2017 at 12:01 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Wed, 31 May 2017 10:54:45 -0400, Reuben Kraft said:<br>
<br>
>Hello,<br>
><br>
>I am trying to build vtk 8.1 on mac running sierra (version 10.12.5). I am<br>
>currently getting this error message below. I have seen others with this<br>
>problem but the solution was not clear. It seemed like it had something to<br>
>do with the location of the Tk headers? I was hoping someone would have<br>
>some clear suggestions. CmakeCache.txt is attached.<br>
><br>
>Thanks.<br>
><br>
>[ 69%] Building CXX object<br>
>Rendering/Tk/CMakeFiles/vtkRe<wbr>nderingTkTCL.dir/vtkCocoaTkUti<wbr>lities.mm.o<br>
><br>
>/Users/rhk12/code/vtk/Renderi<wbr>ng/Tk/vtkCocoaTkUtilities.mm:<wbr>57:28: error: no<br>
>member named 'view' in 'TkWindowPrivate'<br>
><br>
> NSView *result = macWin->view;<br>
><br>
> ~~~~~~ ^<br>
<br>
</span>In your cache we see:<br>
<br>
TK_INTERNAL_PATH:PATH=/Users/r<wbr>hk12/code/vtk/ThirdParty/TclTk<wbr>/internals/tk8.5<br>
<br>
In:<br>
<br>
VTK/ThirdParty/TclTk/internals<wbr>/tk8.5/tkMacOSXInt.h<br>
<br>
there is indeed no member named 'view' in 'TkWindowPrivate'.<br>
<br>
In:<br>
<br>
VTK/ThirdParty/TclTk/internals<wbr>/tk8.6/tkMacOSXInt.h<br>
<br>
there is.<br>
<br>
Cheers,<br>
<span class="m_-1697371138716574608HOEnZb"><font color="#888888"><br>
--<br>
______________________________<wbr>______________________________<br>
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a><br>
Rogue Research <a href="http://www.rogue-research.com" rel="noreferrer" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer Montréal, Québec, Canada<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>