[vtkusers] vtk 8.1 on mac sierra (10.12.5) - error: no member named 'view' in 'TkWindowPrivate'

David Gobbi david.gobbi at gmail.com
Thu Jun 1 00:59:22 EDT 2017


Hi Reuben,

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:

TK_INTERNAL_PATH:PATH=
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Headers/tk-private/

Cheers,
 - David

On Wed, May 31, 2017 at 6:57 PM, Reuben Kraft <reuben.kraft at gmail.com>
wrote:

> 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.
>
> Thanks,
>
>
>
> [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/
> vtkRenderingOpenGL2CxxTests.dir/TestVBOPointsLines.cxx.o
>
> [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/
> vtkRenderingOpenGL2CxxTests.dir/TestValuePass.cxx.o
>
> [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/
> vtkRenderingOpenGL2CxxTests.dir/TestValuePass2.cxx.o
>
> [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/
> vtkRenderingOpenGL2CxxTests.dir/TestCubeMap2.cxx.o
>
> [ 68%] Linking CXX executable ../../../../bin/vtkRenderingOpenGL2CxxTests.
> app/Contents/MacOS/vtkRenderingOpenGL2CxxTests
>
> [ 68%] Built target vtkRenderingOpenGL2CxxTests
>
> [ 68%] Building CXX object Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/
> vtkTclTkWidgetsInit.cxx.o
>
> [ 68%] Building CXX object Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/
> vtkTkRenderWidget.cxx.o
>
> In file included from /Users/rhk12/code/vtk/Rendering/Tk/
> vtkTkRenderWidget.cxx:34:
>
> In file included from /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/
> tk8.6/tkInt.h:991:
>
> /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:103:8:
> error: unknown type name 'CONST86'
>
> EXTERN CONST86 char *  TkFindStateString(const TkStateMap *mapPtr,
>
>        ^
>
> /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:103:16:
> error: expected unqualified-id
>
> EXTERN CONST86 char *  TkFindStateString(const TkStateMap *mapPtr,
>
>                ^
>
> /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:166:8:
> error: unknown type name 'CONST86'
>
> EXTERN CONST86 char *  TkKeysymToString(KeySym keysym);
>
>        ^
>
> /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:166:16:
> error: expected unqualified-id
>
> EXTERN CONST86 char *  TkKeysymToString(KeySym keysym);
>
> On Wed, May 31, 2017 at 12:01 PM, Sean McBride <sean at rogue-research.com>
> wrote:
>
>> On Wed, 31 May 2017 10:54:45 -0400, Reuben Kraft said:
>>
>> >Hello,
>> >
>> >I am trying to build vtk 8.1 on mac running sierra (version 10.12.5). I
>> am
>> >currently getting this error message below. I have seen others with this
>> >problem but the solution was not clear. It seemed like it had something
>> to
>> >do with the location of the Tk headers? I was hoping someone would have
>> >some clear suggestions. CmakeCache.txt is attached.
>> >
>> >Thanks.
>> >
>> >[ 69%] Building CXX object
>> >Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/vtkCocoaTkUtilities.mm.o
>> >
>> >/Users/rhk12/code/vtk/Rendering/Tk/vtkCocoaTkUtilities.mm:57:28: error:
>> no
>> >member named 'view' in 'TkWindowPrivate'
>> >
>> >  NSView *result = macWin->view;
>> >
>> >                   ~~~~~~  ^
>>
>> In your cache we see:
>>
>> TK_INTERNAL_PATH:PATH=/Users/rhk12/code/vtk/ThirdParty/TclTk
>> /internals/tk8.5
>>
>> In:
>>
>> VTK/ThirdParty/TclTk/internals/tk8.5/tkMacOSXInt.h
>>
>> there is indeed no member named 'view' in 'TkWindowPrivate'.
>>
>> In:
>>
>> VTK/ThirdParty/TclTk/internals/tk8.6/tkMacOSXInt.h
>>
>> there is.
>>
>> Cheers,
>>
>> --
>> ____________________________________________________________
>> Sean McBride, B. Eng                 sean at rogue-research.com
>> Rogue Research                        www.rogue-research.com
>> Mac Software Developer              Montréal, Québec, Canada
>>
>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170531/c8cc4622/attachment.html>


More information about the vtkusers mailing list