Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deployment: Empty (Transparent) 3D Graphics Window with warning message - "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"
Forum Updated to NodeBB v4.3 + New Features

Deployment: Empty (Transparent) 3D Graphics Window with warning message - "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"

Scheduled Pinned Locked Moved Solved Installation and Deployment
21 Posts 5 Posters 8.2k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    Did you check that you had GPU acceleration supported on your other virtual machine ?

    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
    0
    • M Offline
      M Offline
      mConnolly82
      wrote on last edited by
      #3

      Yes, I had found similar posts with a similar problem during my attempts to fix this issue and this was one of the first thing I tried in addition to maxing out the memory available for rendering.

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

        The memory is one thing. Did you ensure that the GPU is activated for your virtual machine ?

        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
        0
        • M Offline
          M Offline
          mConnolly82
          wrote on last edited by
          #5

          Yes.0_1473712140802_Capture.JPG image url)

          kshegunovK 1 Reply Last reply
          0
          • M mConnolly82

            Yes.0_1473712140802_Capture.JPG image url)

            kshegunovK Offline
            kshegunovK Offline
            kshegunov
            Moderators
            wrote on last edited by kshegunov
            #6

            @mConnolly82

            The forum's upload feature is currently broken (we can't see your uploaded image). Please use an external site (e.g. postimage.org).

            Read and abide by the Qt Code of Conduct

            M 1 Reply Last reply
            0
            • kshegunovK kshegunov

              @mConnolly82

              The forum's upload feature is currently broken (we can't see your uploaded image). Please use an external site (e.g. postimage.org).

              M Offline
              M Offline
              mConnolly82
              wrote on last edited by kshegunov
              #7
              This post is deleted!
              1 Reply Last reply
              0
              • M Offline
                M Offline
                mConnolly82
                wrote on last edited by kshegunov
                #8

                @kshegunov
                alt text

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

                  What exact Linux distribution are you running ?

                  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
                  0
                  • hskoglundH Offline
                    hskoglundH Offline
                    hskoglund
                    wrote on last edited by
                    #10

                    Hi, if you tested a vanilla Ubuntu 16.04.1, perhaps it needs an update to be able to display graphics properly:

                    sudo apt install libglu1-mesa-dev

                    (If that's not done, I cannot compile Qt programs. Perhaps that update helps displaying them as well.)

                    M 1 Reply Last reply
                    0
                    • hskoglundH hskoglund

                      Hi, if you tested a vanilla Ubuntu 16.04.1, perhaps it needs an update to be able to display graphics properly:

                      sudo apt install libglu1-mesa-dev

                      (If that's not done, I cannot compile Qt programs. Perhaps that update helps displaying them as well.)

                      M Offline
                      M Offline
                      mConnolly82
                      wrote on last edited by
                      #11

                      @hskoglund I updated libglu1, still no change. But thank you :-)

                      1 Reply Last reply
                      0
                      • hskoglundH Offline
                        hskoglundH Offline
                        hskoglund
                        wrote on last edited by
                        #12

                        Hmmm, you could try installing Qt/Qt Creator in that Ubuntu VM, see if you can build and run any of Qt's OpenGL examples, for example Shader Effects (works ok on my Ubuntu VM).

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mConnolly82
                          wrote on last edited by
                          #13

                          Installed Qt on the deployment test system and it appears to be be able to run examples. However, the software I am deploying still does not function appropriately and I get the same error message when I enter that portion of the program.

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

                            What exact OS are you running ? What graphic card is the machine using ?

                            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
                            0
                            • M Offline
                              M Offline
                              mConnolly82
                              wrote on last edited by
                              #15
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mConnolly82
                                wrote on last edited by
                                #16

                                @SGaist
                                The Virtual Machine to which this program is being deployed (and having issues):
                                alt text
                                The Virtual Machine which it was developed on:
                                alt text
                                As you can see they are almost identical except that the software runs properly on the development machine, and generates errors on the deployment machine:
                                What it is doing:
                                alt text
                                What it should be doing:
                                alt text
                                The Actual Machine these VM's are running on is equipped with a GeForce GT635.

                                1 Reply Last reply
                                0
                                • hskoglundH Offline
                                  hskoglundH Offline
                                  hskoglund
                                  wrote on last edited by
                                  #17

                                  Hi just a wild guess but have you tried increasing the amount of RAM available on your troublesome VM, from 975.0 MB to say 2 GB?

                                  M 1 Reply Last reply
                                  0
                                  • hskoglundH hskoglund

                                    Hi just a wild guess but have you tried increasing the amount of RAM available on your troublesome VM, from 975.0 MB to say 2 GB?

                                    M Offline
                                    M Offline
                                    mConnolly82
                                    wrote on last edited by
                                    #18

                                    @hskoglund See third post

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

                                      Are there any differences between the two machines ?

                                      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
                                      0
                                      • M Offline
                                        M Offline
                                        mConnolly82
                                        wrote on last edited by
                                        #20

                                        Good news everyone! I figured it out. I needed to bring over the folder "xcbglintegrations" from the development plugins folder in Qt on the dev machine into the folder colocated the deployed program. Thank you again for all your help!

                                        1 Reply Last reply
                                        0
                                        • J Offline
                                          J Offline
                                          JAQQ
                                          wrote on last edited by
                                          #21

                                          Add
                                          export QT_QPA_PLATFORM_PLUGIN_PATH=/pathtoQT/5.x.0/gcc_64/plugins
                                          to ~/.bashrc

                                          source ~/.bashrc

                                          This works for me.

                                          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