[vtkusers] Fix Ubuntu 14.04 VTK 6.1 compiling issue
christian.askeland at gmail.com
Tue Sep 2 05:05:29 EDT 2014
I had the same issue today, on both VTK 6.1 and the current git HEAD. I use
the NVidia driver version 343 (gl headers dated august 2014). However, a
colleague of mine compiles VTK fine when using an older driver (331 /
I looked into the GL headers (/usr/include/GL/) and found that GLintptr now
is in use in glxext.h, this was not the case in the previous version.
My solution was to uncomment the define GLXEXT like this:
// define GLX_GLXEXT_LEGACY to prevent glx.h to include glxext.h provided by
// the system
which causes glext.h to be included in glxext.h, thus providing the missing
This seems like a better solution than including vtkgl.h before GL/glx.h,
but I don't have the full picture here.
SINTEF Medical Technology
On Fri, Aug 29, 2014 at 9:49 AM, Severin Holzer-Graf <sholzergr at gmail.com>
> I faced the same compiling issue on Ubuntu 14.04 as mathew here:
> Compiling fails, because "GLsizeiptr has not been declared".
> The issue is that "vtkgl.h" is included *after* "GL/glx.h" which needs
> the typedefs for the datatypes from "vtkgl.h".
> I simply swapped the two lines and VTK compiles. Appended a patch that
> shows the change.
> Interestingly on my ArchLinux system compiling VTK 6.1 works out of
> the box and this was not necessary. I didn't further investigate that,
> so I'm not sure if swapping the two lines is actually the correct fix.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers