Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Strange issue with QXcbIntegration: Cannot create platform OpenGL context, neither GLX or EGL are enabled
Forum Updated to NodeBB v4.3 + New Features

Strange issue with QXcbIntegration: Cannot create platform OpenGL context, neither GLX or EGL are enabled

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
openglraspberrypicross compileqt512.11qt quick
13 Posts 2 Posters 12.2k 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.
  • A Offline
    A Offline
    andy0206
    wrote on last edited by
    #3

    Hi,

    Thanks for posting.

    Yes, X server is running.
    What is the best way to check if the current user has access to xorg? and how do you add the user?

    FYI I only have one user on the Pi as per out of box when installing raspbarian.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      If you can log into your RPi locally with the graphical user interface working it should already be a good sign.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        andy0206
        wrote on last edited by
        #5

        Thanks. Yes, its all generally Good in terms of the display when logged in as pi user. As described, the issue only manifests when the application is launched locally from the pi user profile. Starting the application remotely or within Qt Creator is all Good. For now I have created a launch application script elevated with sudo and the application runs fine.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          Can you run GLXGears ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            andy0206
            wrote on last edited by
            #7

            Hi, Yes it glxgears works fine - low frame rate, but that's to be expected on a PiZero.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #8

              Without sudo ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • A Offline
                A Offline
                andy0206
                wrote on last edited by
                #9

                Yes, sorry

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @andy0206 said in Strange issue with QXcbIntegration: Cannot create platform OpenGL context, neither GLX or EGL are enabled:

                  EGL on X11

                  I wonder if your issue related to that.

                  Does running your application with sudo use X or the frame buffer directly ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    andy0206
                    wrote on last edited by
                    #11

                    Hi,

                    I’m not entirely sure how to check for that. The application is not doing anything special, just a QML app with some custom styled controls which has transparency. I am using QtCamera in the application though.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      You would need a build with EGL on X11 enabled.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      A 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        You would need a build with EGL on X11 enabled.

                        A Offline
                        A Offline
                        andy0206
                        wrote on last edited by
                        #13

                        @SGaist Ok, thank you. I'll give it a go

                        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