Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building Qt 5.1.1 on Linux, with -qt-xcb and old media-libs/mesa-7.2 & x11-proto/xproto-7.0.13



  • With media-libs/mesa-7.2,
    qtbase/src/plugins/platforms/offscreen/qoffscreenintegration_x11.cpp wouldn't build, the error is:

    bq. qoffscreenintegration_x11.cpp: In member function 'virtual void (* QOffscreenX11GLXContext::getProcAddress(const QByteArray&))()':
    qoffscreenintegration_x11.cpp:234:100: error: 'glXGetProcAddressARB' was not declared in this scope

    adding -DGLX_GLXEXT_LEGACY helps, since glx.h then does not include definitions from glxext.h, and thus declares glXGetProcAddressARB normally.

    With x11-proto/xproto-7.0.13, the file include/X11/keysymdef.h
    lacks certain key definitions, like XK_dead_currency,
    according to the patch "http://cgit.freedesktop.org/xorg/proto/x11proto/commit/?id=2563153ed69d3d6f052ba275ff79df3cbe54b76d":http://cgit.freedesktop.org/xorg/proto/x11proto/commit/?id=2563153ed69d3d6f052ba275ff79df3cbe54b76d
    so qtbase/src/plugins/platforms/xcb/qxcbkeyboard.cpp wouldn't build.

    Both errors go through the ./configure -qt-xcb check and have no fixups.

    Suggestions:

    • set requirement xproto>= 2008-11-11
    • set proper requirements for mesa or add macro fixup for this version (and similar).

    Should I file a low-priority bug into bugtracker? Or is it outside Qt's concern and certain OS vendors/repository managers should provide their own patches?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    I think you should bring this discussion on the development mailing list, you'll find there Qt's developers/maintainers (this forum is more user oriented)



  • @articicejuice said:

    qtbase/src/plugins/platforms/xcb/qxcbkeyboard.cpp

    to pass through this error it's enough to add
    #define XK_dead_currency 0xfe6f
    to the top of this cpp file.


Log in to reply