Important: Please read the Qt Code of Conduct -

Impossible to get Qt working with OpenGL.

  • 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)
    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 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"

  • 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?

Log in to reply