标签:erro context included enum ntp 方法 typedef adc art
In file included from /usr/include/GL/glx.h:333:0, from /home/tong/ThirdPart/vtk-v5.10.1/Rendering/vtkXOpenGLRenderWindow.cxx:31: /usr/include/GL/glxext.h:508:143: error: ‘GLintptr’ has not been declared typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
解决方法:
sudo gedit /usr/local/include/GL/glxext.h
在打开的文件第479行,添加如下2句:
typedef ptrdiff_t GLsizeiptr;
typedef ptrdiff_t GLintptr;
标签:erro context included enum ntp 方法 typedef adc art
原文地址:https://www.cnblogs.com/FallenMulberry/p/11972522.html