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. Could not initialize GLX
Forum Updated to NodeBB v4.3 + New Features

Could not initialize GLX

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 5.9k Views 1 Watching
  • 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.
  • T Offline
    T Offline
    tjusxh
    wrote on last edited by
    #1

    Re: QTCreator does not start: Could not initialize GLX

    I was compile github project. It dependency QT. I installed Qt 5.8 by command line on Ubuntu 16.04.(https://www.jianshu.com/p/afbc42ad2cfd)
    I only run the code by remote ssh with xshell.

    When I run the demo. It shows the following messages.

    XcbConnection: Failed to initialize XRandr
    Could not initialize GLX
    Aborted (core dumped)

    So far i havent't found any solution how to solve this issue. Any help is appreciated.

    Xinhui

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Normally Qt requires OpenGL and a screen to work. So you're getting issues when you launch apps through the terminal because screen is missing.

      Try running your app like so:

      ./myApplication -platform minimal
      # OR
      ./myApplication -platform offscreen
      

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved