VTK 5.10 doesn't compile with ubunutu 14.10
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
VTK doesn't compile with ubunutu 14.10, here the errors I get:
/usr/include/GL/glxext.h:480:143: error: unknown type name 'GLintptr'
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:480:164: error: unknown type name 'GLintptr'
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:480:186: error: unknown type name 'GLsizeiptr'; did you mean 'GLsizei'?
typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/gl.h:131:14: note: 'GLsizei' declared here
typedef int GLsizei; /* 4-byte signed */
^
In file included from /home/rdebroiz/medinria/src/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:31:
In file included from /usr/include/GL/glx.h:333:
/usr/include/GL/glxext.h:481:148: error: unknown type name 'GLintptr'
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:481:169: error: unknown type name 'GLintptr'
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/glxext.h:481:191: error: unknown type name 'GLsizeiptr'; did you mean 'GLsizei'?
typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
^
/usr/include/GL/gl.h:131:14: note: 'GLsizei' declared here
typedef int GLsizei; /* 4-byte signed */ ```
It can be solved by uncomment the line 30 in
VTK / Rendering / vtkXOpenGLRenderWindow.cxx:
// define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by
// the system
// #define GLX_GLXEXT_LEGACY