[vtkusers] Re: Missing VTK library, Mac OS X

William A. Hoffman billlist at nycap.rr.com
Tue Mar 16 15:52:30 EST 2004


TK is implemented in Carbon and not Cocoa so there is no way
for it to work.  If you want to use COCOA you can not use TK.

-Bill


At 03:25 PM 3/16/2004, Theodore D. Sternberg wrote:
>OK, it's pretty clear that libvtkRenderingPythonTkWidgets.dylib was not
>meant to be, on Mac OS X, at least not if you want Cocoa.  The question
>is, why not, and is there a good alternative?
>
>Here's the relevant text from Rendering/CMakeLists.txt:
>
>IF (VTK_WRAP_PYTHON)
>  IF (TK_LIBRARY)
>     IF(NOT VTK_USE_COCOA)
>       SET(RenderingPythonTkWidgets_SRCS
>          vtkTkWidgetsInit.cxx
>          vtkTkRenderWidgetPython.cxx
>          vtkTkImageViewerWidgetPython.cxx
>          )
>         ADD_LIBRARY(vtkRenderingPythonTkWidgets SHARED
>                     ${RenderingPythonTkWidgets_SRCS})
>       TARGET_LINK_LIBRARIES (vtkRenderingPythonTkWidgets
>                              vtk${KIT}
>                              ${TCL_LIBRARY}
>                              ${TK_LIBRARY})
>       INSTALL_TARGETS(/lib/vtk vtkRenderingPythonTkWidgets)
>     ENDIF(NOT VTK_USE_COCOA)
>  ENDIF (TK_LIBRARY)
>ENDIF (VTK_WRAP_PYTHON)
>
>
>On Tue, 16 Mar 2004, Theodore D. Sternberg wrote:
>> When building VTK4.4 on Mac OS X, it doesn't produce a
>> libvtkRenderingPythonTkWidgets.dylib (or .so).  (On Linux it does build
>> this library.)  As a consequence, the vtkTkRenderWidget can't be used.
>> 
>> Presuming this reflects a problem with one of the CMakeLists files, could 
>> someone suggest a fix there?
>> 
>> Theodore Sternberg
>> Lawrence Berkeley National Laboratory
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers 




More information about the vtkusers mailing list