Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why is using EGL in Qt so hard?
Forum Updated to NodeBB v4.3 + New Features

Why is using EGL in Qt so hard?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 693 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baxiche
    wrote on last edited by
    #1

    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?

    C 1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      Qt version? Ubuntu version?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        baxiche
        wrote on last edited by
        #3

        Sorry for missing the information, the Qt version is 6.7.2, ubuntu version is newer than 20.04.

        JoeCFDJ 1 Reply Last reply
        0
        • B baxiche

          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?

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • B baxiche

            Sorry for missing the information, the Qt version is 6.7.2, ubuntu version is newer than 20.04.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by JoeCFD
            #5

            @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.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              loser
              wrote on last edited by
              #6

              I am try to render video too,i use egl can success show the key is GL_TEXTURE_EXTERNAL_OES

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved