[vtkusers] Mac OS X 10.5.6: Compiling VTK 5.2.1 with X11 and Tcl
Martin Costabel
costabel at wanadoo.fr
Wed Jan 28 11:56:02 EST 2009
Michael Rullmann wrote:
>
> Hey list,
>
>
> I try to compile VTK with X11 and Tcl support to be able to use KWWidgets and the vtkInria3D Add-Ons.
> But I get stuck at 96%:
>
> Scanning dependencies of target vtk
> [ 96%] Building CXX object Wrapping/Tcl/CMakeFiles/vtk.dir/vtkTkAppInit.o
> Linking CXX executable ../../bin/vtk
> Undefined symbols:
> "_glXGetCurrentContext", referenced from:
> vtkXOpenGLRenderWindow::MakeCurrent() in libvtkRendering.a(vtkXOpenGLRenderWindow.o)
> vtkXOpenGLRenderWindow::MakeCurrent() in libvtkRendering.a(vtkXOpenGLRenderWindow.o)
> vtkXOpenGLRenderWindow::MakeCurrent() in libvtkRendering.a(vtkXOpenGLRenderWindow.o)
[]
> It seems to be a problem with OpenGL, which is set as following in cmake:
>
> OPENGL_INCLUDE_DIR /usr/X11R6/include
> OPENGL_gl_LIBRARY /System/Library/Frameworks/OpenGL.framework
> OPENGL_glu_LIBRARY /System/Library/Frameworks/AGL.framework
> OPENGL_xmesa_INCLUDE_DIR /usr/X11R6/include
You want
OPENGL_gl_LIBRARY "-L/usr/X11R6/lib -lGL"
OPENGL_glu_LIBRARY "-L/usr/X11R6/lib -lGLU"
The framework GL libraries are pulled in automatically by their X11
counterparts.
--
Martin
More information about the vtkusers
mailing list