[vtkusers] Building VTK 6.3.0 with X11 on Mac El Capitan
James Overly
joverly at cfa.harvard.edu
Wed Aug 24 11:23:01 EDT 2016
It looks a little better but now I'm seeing:
[ 98%] Building CXX object
Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/vtkCoreGraphicsGPUInfoList.cxx.o
Linking CXX shared library ../../lib/libvtkRenderingOpenGL-6.3.dylib
Undefined symbols for architecture x86_64:
"_CGLDescribeRenderer", referenced from:
vtkCoreGraphicsGPUInfoList::Probe() in
vtkCoreGraphicsGPUInfoList.cxx.o
"_CGLDestroyRendererInfo", referenced from:
vtkCoreGraphicsGPUInfoList::Probe() in
vtkCoreGraphicsGPUInfoList.cxx.o
"_CGLQueryRendererInfo", referenced from:
vtkCoreGraphicsGPUInfoList::Probe() in
vtkCoreGraphicsGPUInfoList.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [lib/libvtkRenderingOpenGL-6.3.1.dylib] Error 1
make[1]: *** [Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/all]
Error 2
make: *** [all] Error 2
Let me know if you need any more information.
Thanks
Jim
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