How to deploy Python PyQt5 application to embedded Linux?

I wrote a Python3 application that uses PyQt5 for GUI, it works fine on every desktop system. Now I would like to run this on embedded Linux (specifically: Yocto BSP), which is supplied by the hardware manufacturer. Since BSP does not have PyQt5, but qt5 and python3, I would like (somehow) to make a standalone application executable. Plus, I have no experience writing beatback recipes and creating custom BSPs and have not found any existing PyQt5 recipes.

What I have tried so far (and failed):

  • Make a standalone executable with nuitka, cx-freeze, pyinstaller (compiled on a similar platform)
  • Use pyqtdeploy to convert python to C ++ source code, then compile it using the supplied build environment. I did a static compilation of the pyqt5 and sip packages and everything compiles just fine, but makeit gives undefined links (linker errors) that I cannot solve (since I'm not very familiar with C ++).

Now, what is the best approach to run a python / pyqt5 application on an embedded Linux system with very limited packages?

+4
source share
1 answer

You can see the python-pyqt5 link

0
source

Source: https://habr.com/ru/post/1605634/


All Articles