Solved Deployment: Empty (Transparent) 3D Graphics Window with warning message - "QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled"
-
-
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!
-
Add
export QT_QPA_PLATFORM_PLUGIN_PATH=/pathtoQT/5.x.0/gcc_64/plugins
to ~/.bashrcsource ~/.bashrc
This works for me.