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. Yocto/Qt5.6: QXcbIntegration: Cannot create platform OpenGL context
Forum Updated to NodeBB v4.3 + New Features

Yocto/Qt5.6: QXcbIntegration: Cannot create platform OpenGL context

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 713 Views
  • 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.
  • chaithubkC Offline
    chaithubkC Offline
    chaithubk
    wrote on last edited by
    #1

    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 Qt Quick Examples - Shader Effects 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:

    ./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.
    

    I tried running a sample application Analog Clock Example from Qt Creator Examples section, this program uses only QT Widgets and am able to run the application on Nitrogen6x board successfully.

    In my packagegroup-qt5-toolchain-target.bb file I have removed the below lines (due to some GIT pull related errors).

    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${USE_WAYLAND}', '', d)} \
    ${USE_RUBY} \
    

    Does this change has any resemblance to the problem am facing with OpenGL. If I try to do sudo apt-get install libgl1-mesa-dev or equivalent on Yocto Terminal it shows apt-get: command not found.

    How do I need to resolve this OpenGL related errors. Any help on this is deeply appreciated. Thanks in advance.

    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