[vtkusers] trying to build VTK 5.10.1 on OSX 10.8

Steve Spicklemire steve at spvi.com
Sat Jun 1 17:07:08 EDT 2013


Awesome! I'll give it a try.

-steve

On Jun 1, 2013, at 2:16 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Huge mistake in my last post.  I meant to write this:
> 
> VTK_USE_TK:BOOL=OFF
> 
> On Sat, Jun 1, 2013 at 2:15 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> Hi Steve,
>> 
>> You can probably fix your build by setting this in your CMakeCache.txt:
>> 
>> VTK_USE_TK:BOOL=ON
>> 
>> The issue is fairly simple: if cmake finds Tcl/Tk on your system, then
>> it will automatically try to build the vtkTkRenderWidget (which is
>> turned off by the above cmake setting).  Unfortunately, though, VTK
>> 5.10.1 is not compatible with tk 8.6, which many systems are shipping
>> these days.
>> 
>> We prepared a patch for this that we hoped would make it into VTK
>> 5.10.2, but VTK 5.10.2 never happened.  Here is the patch if you want
>> to apply it yourself:
>> http://review.source.kitware.com/#/t/2360/
>> 
>> - David
>> 
>> 
>> On Sat, Jun 1, 2013 at 1:29 PM, Steve Spicklemire <steve at spvi.com> wrote:
>>> 
>>>> 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