GNOME Bugzilla – Bug 786993
nvdec: build broken after GL/gl.h no longer included
Last modified: 2017-08-31 07:57:00 UTC
Should include gstglfuncs.h
Created attachment 358732 [details] [review] patch
commit f2674517518f14eab08d804562e5a746ff06337c (HEAD -> master) Author: Per-Erik Brodin <per-erik.brodin@ericsson.com> Date: Tue Aug 29 16:52:07 2017 -0700 nvdec: fix build after GL/gl.h no longer included GL headers are no longer included in public gstgl headers, except for gstglfuncs.h so make sure to include that one. https://bugzilla.gnome.org/show_bug.cgi?id=786993
Hi Per-Erik, what was the build error exactly ? If it is just because of "GL_TEXTURE_2D" (when calling cuGraphicsGLRegisterImage), you can replace it by "gst_gl_texture_target_to_gl (GST_GL_TEXTURE_TARGET_2D)".
Created attachment 358784 [details] build error
(In reply to Julien Isorce from comment #3) > Hi Per-Erik, what was the build error exactly ? > > If it is just because of "GL_TEXTURE_2D" (when calling > cuGraphicsGLRegisterImage), you can replace it by > "gst_gl_texture_target_to_gl (GST_GL_TEXTURE_TARGET_2D)". cudaGL.h is using GLuint in several places and the function prototype for cuGraphicsGLRegisterImage is using GLenum for the texture target. http://manpages.ubuntu.com/manpages/zesty/man3/cudaGL.h.3.html
Ack, thx.