<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Yocto&#x2F;Qt5.6: QXcbIntegration: Cannot create platform OpenGL context]]></title><description><![CDATA[<p dir="auto">I am working on Nitrogen6x board that runs on Yocto 2.1 with Qt 5.6.2 support. I am able to build a sample qt application <strong>Qt Quick Examples - Shader Effects</strong> present under Examples section of Qt Creator. Copied over the executable on my nitrogen board. Have set the required QT environment variables on the terminal where I launched the sample qt application and I am noticing this error:</p>
<pre><code>./shadereffects

QXcbIntegration: cannot create platform OpenGL context, neither GLX nor EGL are enabled.

Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0)

Aborted.
</code></pre>
<p dir="auto">I tried running a sample application <strong>Analog Clock Example</strong> from Qt Creator Examples section, this program uses only QT Widgets and am able to run the application on Nitrogen6x board successfully.</p>
<p dir="auto">In my <a href="http://packagegroup-qt5-toolchain-target.bb" target="_blank" rel="noopener noreferrer nofollow ugc">packagegroup-qt5-toolchain-target.bb</a> file I have removed the below lines (due to some GIT pull related errors).</p>
<pre><code>${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${USE_WAYLAND}', '', d)} \
${USE_RUBY} \
</code></pre>
<p dir="auto">Does this change has any resemblance to the problem am facing with OpenGL. If I try to do <code> sudo apt-get install libgl1-mesa-dev</code> or equivalent on Yocto Terminal it shows <code> apt-get: command not found</code>.</p>
<p dir="auto">How do I need to resolve this OpenGL related errors. Any help on this is deeply appreciated. Thanks in advance.</p>
]]></description><link>https://forum.qt.io/topic/76945/yocto-qt5-6-qxcbintegration-cannot-create-platform-opengl-context</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 11:02:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/76945.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Mar 2017 15:04:47 GMT</pubDate><ttl>60</ttl></channel></rss>