  CC       libgstnvdec_la-gstnvdec.lo
In file included from gstnvdec.c:34:0:
/usr/include/cudaGL.h:149:80: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGraphicsGLRegisterBuffer(CUgraphicsResource *pCudaResource, GLuint buffer, unsigned int Flags);
                                                                                ^~~~~~
/usr/include/cudaGL.h:206:79: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGraphicsGLRegisterImage(CUgraphicsResource *pCudaResource, GLuint image, GLenum target, unsigned int Flags);
                                                                               ^~~~~~
/usr/include/cudaGL.h:206:93: error: unknown type name ‘GLenum’
 CUresult CUDAAPI cuGraphicsGLRegisterImage(CUgraphicsResource *pCudaResource, GLuint image, GLenum target, unsigned int Flags);
                                                                                             ^~~~~~
In file included from gstnvdec.c:34:0:
/usr/include/cudaGL.h:379:43: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLRegisterBufferObject(GLuint buffer);
                                           ^~~~~~
/usr/include/cudaGL.h:414:72: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLMapBufferObject(CUdeviceptr *dptr, size_t *size,  GLuint buffer);
                                                                        ^~~~~~
/usr/include/cudaGL.h:444:40: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLUnmapBufferObject(GLuint buffer);
                                        ^~~~~~
/usr/include/cudaGL.h:473:45: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLUnregisterBufferObject(GLuint buffer);
                                             ^~~~~~
/usr/include/cudaGL.h:516:46: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLSetBufferObjectMapFlags(GLuint buffer, unsigned int Flags);
                                              ^~~~~~
/usr/include/cudaGL.h:552:77: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLMapBufferObjectAsync(CUdeviceptr *dptr, size_t *size,  GLuint buffer, CUstream hStream);
                                                                             ^~~~~~
/usr/include/cudaGL.h:583:45: error: unknown type name ‘GLuint’
 CUresult CUDAAPI cuGLUnmapBufferObjectAsync(GLuint buffer, CUstream hStream);
                                             ^~~~~~
gstnvdec.c: In function ‘register_cuda_resource’:
gstnvdec.c:137:19: error: implicit declaration of function ‘cuGraphicsGLRegisterImage’ [-Werror=implicit-function-declaration]
     if (!cuda_OK (cuGraphicsGLRegisterImage (&cgr_info->resource, texture_id,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
gstnvdec.c:137:5: error: nested extern declaration of ‘cuGraphicsGLRegisterImage’ [-Werror=nested-externs]
     if (!cuda_OK (cuGraphicsGLRegisterImage (&cgr_info->resource, texture_id,
     ^~
gstnvdec.c:138:17: error: ‘GL_TEXTURE_2D’ undeclared (first use in this function)
                 GL_TEXTURE_2D, CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD)))
                 ^~~~~~~~~~~~~
gstnvdec.c:138:17: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
Makefile:921: recipe for target 'libgstnvdec_la-gstnvdec.lo' failed
make: *** [libgstnvdec_la-gstnvdec.lo] Error 1
