简体   繁体   中英

How do I deploy a Python PyQt5 Application to an embedded Linux?

I've written a Python3 application which uses PyQt5 for the GUI, it runs fine on every desktop system. Now I would like to run this on an embedded linux (specifically: Yocto BSP) which is delivered by the hardware manufacturer. Since there's no PyQt5 but a qt5 and python3 package running on the BSP, I would like to (somehow) make a standalone executable of the application. Plus I'm not experienced with writing bitbake recipes and creating a custom BSP and have not found any existing PyQt5 recipes.

What I've tried so far (and did not succeed):

  • Make a standalone executable with nuitka, cx-freeze, pyinstaller (compiled on a similiar arm platform)
  • Use pyqtdeploy to convert python into c++ source code, then compile it by using the supplied build-environment. I did a static compile of the pyqt5 and sip packages and everything compiles just fine, but make reports undefined references (linker errors) which I cannot resolve (as I'm not very familiar with c++).

Now what's the best approach to let a python/pyqt5 application run on an embedded linux system with very limited packages?

你可以看到链接python-pyqt5

首先你应该得到qt5的meta: https : //github.com/meta-qt5/meta-qt5然后修改local.con和you-image.bb,使qt5可以编译成镜像。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM