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. Impossible to get Qt working with OpenGL.
Forum Updated to NodeBB v4.3 + New Features

Impossible to get Qt working with OpenGL.

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 1.3k 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
    Trino
    wrote on last edited by
    #1

    Hello everybody,

    At least on my system, I can't get Qt to use the OpenGL backend.

    My system:

    OpenSuse 13.1 32-bit with KDE 4.5.11.
    AMD/ATI RV710 (HD4350/4550)
    Driver:
    vendor X.Org
    renderer Gallium 0.4 on AMD RV710
    OpenGL/ES version 3.0 Mesa 9.2.3
    kernel module radeon

    I compiled Qt from source using the folowing options:

    ./configure -prefix-install -prefix /usr/local/Trolltech/Qt-4.8.5-openGL -release -static -fast -opensource -largefile -no-exceptions -no-accessibility -no-stl -no-qt3support -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-svg -no-webkit -no-javascript-jit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-openssl -no-nis -cups -no-dbus -no-gtkstyle -no-nas-sound -opengl desktop -graphicssystem opengl -nomake demos -nomake examples -nomake tools

    When I start a Qt app with the option -graphicssystem opengl I get the warning "Unable to load graphicssystem "opengl".

    When I use a QGLWidget in my app it compiles fine, when I start it, I get the warning "Unable to load graphicssystem "opengl".

    Any ideas how to solve this?

    Btw, other OpenGL programs like Quake 3 and Doom are running fine.

    edit: Qt version is 4.8.5

    Compiling and running the examples from http://www.glprogramming.com/red/ works fine.

    In the .pro file I added the line: QT += opengl

    The example in examples/opengl/cube compiles fine but when I run it, I get the same warning: Unable to load graphicssystem "opengl"

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Trino
      wrote on last edited by
      #2

      After some more testing, I found that recompiling the Qt libraries "shared" solves the problem.

      Now, the question is, why doesn't it work when I compile Qt static?

      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