[Paraview] Problem compiling paraview on Mac Intel
Ivan Guajana
guajanai at student.ethz.ch
Tue Mar 21 10:46:23 EST 2006
Hi,
I am new to the list, so let me greet everyone.
I am trying to compile paraview (both stable release and from CVS) on
a MacBook pro and I am facing the following error:
[...]
Building CXX object VTK/Rendering/CMakeFiles/vtkRendering.dir/
vtkGenericRenderWindowInteractor.o
Building CXX object VTK/Rendering/CMakeFiles/vtkRendering.dir/
vtkGraphicsFactory.o
In file included from /Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkOpenGLPolyDataMapper.h:26,
from /Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkGraphicsFactory.cxx:34:
/Users/ivang/Desktop/ParaView/VTK/Rendering/vtkOpenGL.h:24:43: error:
GL/gl.h: No such file or directory
/Users/ivang/Desktop/ParaView/VTK/Rendering/vtkOpenGLPolyDataMapper.h:
87: error: 'GLenum' has not been declared
/Users/ivang/Desktop/ParaView/VTK/Rendering/vtkOpenGLPolyDataMapper.h:
98: error: 'GLenum' has not been declared
/Users/ivang/Desktop/ParaView/VTK/Rendering/vtkOpenGLRenderWindow.h:
102: error: 'GLuint' has not been declared
make[2]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/
vtkGraphicsFactory.o] Error 1
make[1]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
make: *** [all] Error 2
in vtkOpenGL.h I find:
[...]
#if defined(__APPLE__) && (defined(VTK_USE_CARBON) || defined
(VTK_USE_COCOA))
# include <OpenGL/gl.h> // Include OpenGL API.
#else
# include "vtkWindows.h" // Needed to include OpenGL header on Windows.
# include <GL/gl.h> // Include OpenGL API.
#endif
I configured the build with
BUILD_SHARED_LIBS ON
VTK_USE_CARBON OFF
VTK_USE_CG_SHADERS OFF
VTK_USE_COCOA OFF
VTK_USE_FFMPEG_ENCODER OFF
VTK_USE_GLSL_SHADERS OFF
VTK_USE_RPATH OFF
VTK_USE_X ON
These settings are suggested in the FAQ (http://www.paraview.org/Wiki/
ParaView:FAQ#How_do_I_compile_ParaView_for_Mac_OS_X.3F).
So the second branch will be taken, but obviously GL/gl.h is not
found. If I "force" the first branch the compilation process gets
stuck at
[...]
/Users/ivang/Desktop/paraview-Darwin-Intel/VTK/Rendering/vtkgl.h:
32:20: error: GL/glx.h: No such file or directory
/Users/ivang/Desktop/paraview-Darwin-Intel/VTK/Rendering/vtkgl.h:
12736: error: 'XID' does not name a type
/Users/ivang/Desktop/paraview-Darwin-Intel/VTK/Rendering/vtkgl.h:
12737: error: 'XID' does not name a type
/Users/ivang/Desktop/paraview-Darwin-Intel/VTK/Rendering/vtkgl.h:
12738: error: 'XID' does not name a type
[...]
/Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkOpenGLExtensionManager.cxx:170: warning: 'NSIsSymbolNameDefined'
is deprecated (declared at /usr/include/mach-o/dyld.h:150)
/Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkOpenGLExtensionManager.cxx:170: warning: 'NSIsSymbolNameDefined'
is deprecated (declared at /usr/include/mach-o/dyld.h:150)
/Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkOpenGLExtensionManager.cxx:172: warning: 'NSLookupAndBindSymbol'
is deprecated (declared at /usr/include/mach-o/dyld.h:158)
/Users/ivang/Desktop/ParaView/VTK/Rendering/
vtkOpenGLExtensionManager.cxx:172: warning: 'NSLookupAndBindSymbol'
is deprecated (declared at /usr/include/mach-o/dyld.h:158)
make[2]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/
vtkOpenGLExtensionManager.o] Error 1
make[1]: *** [VTK/Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
I have CMake from CVS and I tried and build VTK 5.1 from CVS without
any problem, so I guess paraview should work, too...
Thanks to anyone who will shred some light on the solution
Regards,
Ivan Guajana
More information about the ParaView
mailing list