[vtkusers] trying to build VTK 5.10.1 on OSX 10.8
Steve Spicklemire
steve at spvi.com
Sat Jun 1 15:29:39 EDT 2013
> Hi VTK folks,
>
> I'm trying to build VTK 5.10.1 on OSX 10.8, xcode 4.6.2 , gcc 4.2
>
> I'm getting the same error discussed here:
>
> <http://www.vtk.org/pipermail/vtkusers/2011-October/119722.html>
>
>> [ 69%] Building CXX object Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkCocoaTkUtilities.mm.o
>> In file included from /Users/steve/Downloads/VTK5.10.1/Rendering/vtkCocoaTkUtilities.mm:23:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Rendering/vtkCocoaTkUtilities.h:34:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Common/vtkObject.h:41:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Common/vtkObjectBase.h:43:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Common/vtkIndent.h:24:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Common/vtkSystemIncludes.h:40:
>> In file included from /Users/steve/Downloads/VTK5.10.1/Common/vtkIOStream.h:108:
>> In file included from /usr/include/c++/4.2.1/backward/strstream:51:
>> /usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of
>> the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use
>> -Wno-deprecated. [-W#warnings]
>> #warning This file includes at least one deprecated or antiquated header. \
>> ^
>> /Users/steve/Downloads/VTK5.10.1/Rendering/vtkCocoaTkUtilities.mm:57:28: error: no member named 'view' in 'TkWindowPrivate'
>> NSView *result = macWin->view;
>> ~~~~~~ ^
>> 1 warning and 1 error generated.
>> make[2]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkCocoaTkUtilities.mm.o] Error 1
>> make[1]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all] Error 2
>> make: *** [all] Error 2
>
> But, unlike this user, the fix doesn't seem to work for me. ;-(
>
> I can see that the 'view' member is in fact defined here:
>
> aluminum:VTK5.10.1 steve$ grep -C 5 view /System/Library/Frameworks/Tk.framework/Headers/tk-private/tkMacOSXInt.h
> # endif
> #endif
>
> struct TkWindowPrivate {
> TkWindow *winPtr; /* Ptr to tk window or NULL if Pixmap */
> NSView *view;
> CGContextRef context;
> int xOff; /* X offset from toplevel window */
> int yOff; /* Y offset from toplevel window */
> CGSize size;
> HIShapeRef visRgn; /* Visible region of window */
>
> and I've set
>
> TK_INCLUDE_PATH:PATH=/System/Library/Frameworks/Tk.framework/Headers
>
> in CMakeCache.txt. I did a 'make clean' and then 'make', but still I get the error.
>
> Any idea what could be going wrong?
>
> thanks!
> -steve
>
More information about the vtkusers
mailing list