QXcbIntegration: Unable to create OpenGL platform context, neither GLX nor EGL enabled

I have a Unix binary created using QT and OpenGL that I am trying to run on Linux-64. This is a simple visual program that shows 2D and 3D graphics.

I installed all the necessary dependencies, such as the QT and openGL libraries. However, I am stuck with the following error while trying to execute a binary

QXcbIntegration: Unable to create OpenGL platform context, neither GLX nor EGL enabled

However, the binary eventually works, but with some missing features, such as 3D graphics.

My settings include: virtual linux-64 using virtualBox, Vagrant, x-11 forwarding and Mac machine.

+1
source share
4 answers

In the end, I realized that OpenGL 3.3 would not work on virtual machines. I had to boot from Ubuntu usb and work from there by installing the latest mesa 3d package.

+1
source

This shows a similar problem, and the developer in the comment said our 3D support is not very clean in Linux guests, hence the warnings . You can try VMware.

0
source

After some time, trying to get some opengl working on a specific blocked linux line, I returned to Qt Creator 2.5.2.

http://download.qt.io/archive/qtcreator/2.5/

http://download.qt.io/archive/qtcreator/2.5/qt-creator-linux-x86_64-opensource-2.5.2.bin

Having received it in the linux window ...

 chmod u+x *.bin ./qt-creator-linux-x86_64-opensource-2.5.2.bin 

And after a short installer, Qt Creator works!

Basically, QtQuick is a requirement for any Qt creator created after 2.5 (aka Qt 5.x) and QtQuick NEEDS opengl libraries and support.

Hope this helps.

0
source

I see this problem when running a Qt application, I was running on the command line. (Ubuntu 16.04 has a dash by default). I changed to a bash prompt and rebuilt my QT application. This error has disappeared. To configure bash, I used the command below.

 sudo dpkg-reconfigure dash 
0
source

Source: https://habr.com/ru/post/1233561/


All Articles