[vtkusers] Building VTK 6.3.0 with X11 on Mac El Capitan

James Overly joverly at cfa.harvard.edu
Wed Aug 24 10:03:02 EDT 2016


Thanks! I'm giving that a try.

Jim

On Tue, 2016-08-23 at 17:52 -0600, David Gobbi wrote:
> Hi James,
> 
> 
> Assuming that you have installed xquartz and that you have all the X11
> headers and libraries in /opt/X11, you have to tell cmake to use the
> OpenGL that comes with X11:
> 
> 
> OPENGL_INCLUDE_DIR:PATH=/opt/X11/include
> OPENGL_gl_LIBRARY:FILEPATH=/opt/X11/lib/libGL.dylib
> OPENGL_glu_LIBRARY:FILEPATH=/opt/X11/lib/libGLU.dylib
> 
> 
> Otherwise VTK will link to the framework OpenGL, which doesn't include
> glx.
> 
> 
> Even with the above, there are no guarantees that VTK will work with
> X11 on OS X.  But it should at least get you past the link errors.
> 
> 
>  - David
> 
> 
> On Tue, Aug 23, 2016 at 5:03 PM, David E DeMarle
> <dave.demarle at kitware.com> wrote:
>         
>         On Tue, Aug 23, 2016 at 6:17 PM, James Overly
>         <joverly at cfa.harvard.edu> wrote:
>                 -DVTK_USE_X:BOOL=ON \
>                 -DVTK_USE_CARBON:BOOL=OFF \ 
>                 
>                 -DVTK_USE_COCOA:BOOL=OFF \
>                 
>         
>         Why not Cocoa? VTK over X11 is strongly discouraged on Mac.
>         
>         David E DeMarle
>         Kitware, Inc.
>         R&D Engineer
>         21 Corporate Drive
>         Clifton Park, NY 12065-8662
>         Phone: 518-881-4909
> 
> 



More information about the vtkusers mailing list