EGL Surface Creation on Wayland Weston

Showing results for 
Search instead for 
Did you mean: 

EGL Surface Creation on Wayland Weston

Contributor I

Dear All,

I am having the following error: 

"EGL: Warning: No default display support on wayland" and gst error message "Debug deails: ../../../../git/gst-libs/gst/gl/gstglbasefilter.c(490): gst_gl_base_filter_find_gl_context (): /GstPipeline:rtsp_gst_pipeline/GstGLUploadElement:glupload
Error: Failed to initialize egl: EGL_BAD_DISPLAY"

I am initializing:

  this->eglDisplay = eglGetCurrentDisplay ();
  this->eglSurface = eglGetCurrentSurface (0);
  this->eglContext = eglGetCurrentContext ();
  eglMakeCurrent(this->eglDisplay, this->eglSurface, this->eglSurface, this->eglContext);


and then;


  GstGLContext *context;
  GstGLDisplayEGL *display;
  display = gst_gl_display_egl_new();
  context = gst_gl_context_new_wrapped(GST_GL_DISPLAY(display), (guintptr) this->eglContext , GST_GL_PLATFORM_EGL, GST_GL_API_GLES2);
  gst_object_unref (display);


Any suggestions how to solve EGL error?

0 Kudos
2 Replies

Contributor I

Dear Bio_TICFSL,

Compositor is Weston using Wayland protocol. Actually there was a different error, when I apply the commands you mentioned above, I started to get the error I mentioned. Seems like the problem is with my code.

I will also check the pdf.


0 Kudos

NXP TechSupport
NXP TechSupport

Hello spear_kor,

Which compositor you use? check that for the display it created & export like below.

export WAYLAND_DISPLAY=wayland-0 // Compositor created display

export XDG_RUNTIME_DIR=/tmp // can be some temporary dir

Try to use the

export DISPLAY:=0.0


Try to use "i.MX_Linux_User's_Guide.pdf" from Linux doc package for some details.




0 Kudos