Important: Please read the Qt Code of Conduct -

Pyside2 over LinuxFB/DRM

  • We are using PySide2 on our embedded Linux board, the hardware does not contain GPU (and no X11). So we have to use LinuxFB/DRM. The Qt for C++ works well. We set the correct environment variables:

    export QT_QPA_FB_TSLIB=1
    export QT_ROOT=/data/QT5/arm-qt
    export QT_QPA_FONTDIR=$QT_ROOT/fonts/truetype/freefont
    export QT_PLUGIN_PATH=$QT_ROOT/plugins
    export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
    export QT_QPA_PLATFORM=linuxfb
    export QT_QPA_FB_DRM=1

    After downloading PySide2(from, we run a python sample and it complains ImportError: /data/usr/lib/python3.9/site-packages/PySide2/ undefined symbol: _ZTI13QOpenGLWidget, version Qt_5.

    Does it mean that PySide2 (or shiboken2) didn't use LinuxFB/DRM? Is there any way to switch to LinuxFB/DRM without recompiling PySide2?

  • Lifetime Qt Champion


    Please do not post the same question in multiple sub forum, one is enough.


    Closing this one

Log in to reply