[vtkusers] Building VTK 6.3.0 with X11 on Mac El Capitan
David Gobbi
david.gobbi at gmail.com
Tue Aug 23 19:52:01 EDT 2016
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160823/1e298071/attachment.html>
More information about the vtkusers
mailing list