probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.22k stars 414 forks source link

why i use qt creater The app can run, but use linuxdeployqt it cannot work.. #598

Closed FangXS-github closed 10 months ago

FangXS-github commented 10 months ago

linux: ubuntu22.04 qtcreater: qt5.13.3 linuxdeployqt: linuxdeployqt continuous (commit 2b38449), build built on 2024-01-02 06:26:02 UTC

when i use qt creater to run my qt app , it works. but when i deploy it ,i got: Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/debix/build-hellowindow-Desktop-Release/platforms" ... qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "/home/debix/build-hellowindow-Desktop-Release/plugins" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb. Aborted (core dumped)

how to slove my problem??

FangXS-github commented 10 months ago

platform : imx8mp -- Linux 6.1.22

FangXS-github commented 10 months ago

and i already compiled linuxdeployqt on my machine.

probonopd commented 10 months ago

Are you running a Wayland session? Do you have XWayland installed? Please try with a Xorg session for comparison. Thanks.

FangXS-github commented 10 months ago

I try: $ sudo apt install qtwayland5 $ sudo apt-get install qtbase5-dev and use normal user (not root) run ./app it works. but The app seems to be unused linuxdeployqt env.