How to create a standalone executable for a PyQt5 application on BeagleBone Black (similar to PyInstaller on Windows)?

On Windows, I typically use PyInstaller to package the application into a single executable, which simplifies distribution and usage. I am looking for a similar solution for BeagleBone Black.

My requirements:

  • The application has a graphical UI developed in PyQt5.
  • I want to bundle the application along with its dependencies so that I can run it easily on BeagleBone without needing to install or configure a lot of packages.
  • Ideally, I want to generate the executable directly on the BeagleBone Black, or at least cross-compile it from a host machine.

What I’ve tried:

  • Installing PyInstaller on BeagleBone, but it failed due to limited resources and dependency issues.
  • Cross-compilation using PyInstaller from x86 to ARM, but it seems complex and poorly documented.