Why is using EGL in Qt so hard?
-
I'm using Ubuntu with kernel version 6.10 and an Intel Gen 7 CPU.
In order to use Qt to render the decoded video data on the GPU, I need to bind the EGLImage to a texture.
However, there are tremendous errors when using EGL in Qt, such as not being able to get the correct EGLDisplay, failing to initialize EGL correctly, and random crashes when calling functions that use eglGetProcAddress.
Why can't Qt make it as easy to use as GLFW? Is there any sugesst reference to read?
-
@baxiche said in Why is using EGL in Qt so hard?:
However, there are tremendous errors when using EGL in Qt, such as not being able to get the correct EGLDisplay, failing to initialize EGL correctly, and random crashes when calling functions that use eglGetProcAddress.
So, all of that is your C++ code making calls in to the relevant EGL related libraries. It's unclear how Qt is involved.
-
@baxiche If you do video stuff with FFmpeg or GStreamer installed with distribution of Ubuntu 20.04, FFmpeg or gstreamer version could be too old while your Qt version is high. Try to upgrade to Ubuntu 22.04 or above. Also pay attention to that your hardware can not be too old as well. Even in Ubuntu 22.04, I built and installed higher version of GStreamer.