Solved Deployment: Empty (Transparent) 3D Graphics Window with warning message - "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"
-
I am working on deploying a program to Linux which leverages 3D graphics in a window within the application. I have successfully built this program on a virtual machine (VMWare) where I was able to see the 3D model preview. Now, however, I am working on deploying the software by testing it on another virtual machine (Ubuntu 64 bit). The application launches, however any place in the software where a frame is supposed to display 3D models does not do so and displays instead an image of whatever is beneath the current frame. Additionally, the terminal outputs
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
I am not sure how to proceed in order to debug / work through this issue, and would appreciate any help that anyone could provide in doing so.
-
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!
-
Hi and welcome to devnet,
Did you check that you had GPU acceleration supported on your other virtual machine ?
-
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.
-
The memory is one thing. Did you ensure that the GPU is activated for your virtual machine ?
-
Yes. image url)
-
The forum's upload feature is currently broken (we can't see your uploaded image). Please use an external site (e.g. postimage.org).
-
This post is deleted! -
-
What exact Linux distribution are you running ?
-
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.)
-
@hskoglund I updated libglu1, still no change. But thank you :-)
-
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).
-
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.
-
What exact OS are you running ? What graphic card is the machine using ?
-
This post is deleted! -
@SGaist
The Virtual Machine to which this program is being deployed (and having issues):
The Virtual Machine which it was developed on:
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:
What it should be doing:
The Actual Machine these VM's are running on is equipped with a GeForce GT635. -
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?
-
@hskoglund See third post
-
Are there any differences between the two machines ?
-
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!