Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
    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 https://archlinuxarm.org/packages/aarch64/pyside2), we run a python sample and it complains ImportError: /data/usr/lib/python3.9/site-packages/PySide2/QtWidgets.cpython-39-aarch64-linux-gnu.so: 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

    Hi,

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

    Duplicate

    Closing this one


Log in to reply