[vtkusers] Building VTK 6.3.0 with X11 on Mac El Capitan
James Overly
joverly at cfa.harvard.edu
Wed Aug 24 14:28:58 EDT 2016
Thanks. We need to modify VTK anyway for our project so
I doubt this will be an issue. I'll pass it in to the developers.
Jim
On Wed, 2016-08-24 at 10:48 -0600, David Gobbi wrote:
> Here's a little hint:
>
>
> In Rendering/OpenGL/CMakeLists.txt find the section labeled "#
> Configuration for vtkOpenGLExtensionManager" change this:
>
>
> elseif(APPLE)
> set(VTK_USE_APPLE_LOADER 1)
> set(VTK_USE_CORE_GRAPHICS 1)
>
>
> to this:
>
>
> elseif(APPLE AND NOT VTK_USE_X)
> set(VTK_USE_APPLE_LOADER 1)
> set(VTK_USE_CORE_GRAPHICS 1)
>
>
> I don't know if that will work, because I haven't tested it, but it
> should move you in the right direction.
>
>
> - David
>
>
>
> On Wed, Aug 24, 2016 at 9:39 AM, David Gobbi <david.gobbi at gmail.com>
> wrote:
> On Wed, Aug 24, 2016 at 9:23 AM, James Overly
> <joverly at cfa.harvard.edu> wrote:
> It looks a little better but now I'm seeing:
>
>
> These CGL calls are invalid for X11 OpenGL. You'll have to
> modify your copy of VTK so that it checks OpenGL capabilities
> on Mac the same was as it usually does for Linux.
>
>
> Let me know if you need any more information.
>
>
> You're going to be pretty much on your own, about all I can
> say now is "good luck".
>
> - David
>
>
>
>
> On Wed, 2016-08-24 at 10:03 -0400, James Overly wrote:
> > 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
> > >
> > >
> >
>
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ
> at: http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Search the list archives at:
> http://markmail.org/search/?q=vtkusers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
>
>
More information about the vtkusers
mailing list