Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Pyside2 over LinuxFB/DRM
Forum Updated to NodeBB v4.3 + New Features

Pyside2 over LinuxFB/DRM

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 308 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.
  • J Offline
    J Offline
    JimJin
    wrote on last edited by JimJin
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Duplicate

      Closing this one

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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