@DungeonLords said in CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "":
I can run my app by name (type this in console)
"$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample"
[image: example%20window.png]
But I want to have the app inside .deb pack so I use CPack. I can install it
sudo dpkg -i "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb"
And call my app
$ /opt/myapp/bin/myexample
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped) /opt/myapp/bin/myexample
I tried to apply tricks with LD_LIBRARY_PATH without success
$ LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped) LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample
How to open my app from .deb?
This is what inside my .deb
$ dpkg-deb -c "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb"
[image: 32f4f548-d8ed-4a8f-a3a9-c1d61bc782a1.png]
This is my repo (copy). I use last Qt version from git dev branch
$ git log --oneline -1
e5a39cd6 (HEAD -> dev, origin/dev, origin/HEAD) Fix icu provisioning for Debian 11
@DungeonLords said in CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "":
I can run my app by name (type this in console)
"$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample"
[image: example%20window.png]
But I want to have the app inside .deb pack so I use CPack. I can install it
sudo dpkg -i "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb"
And call my app
$ /opt/myapp/bin/myexample
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped) /opt/myapp/bin/myexample
I tried to apply tricks with LD_LIBRARY_PATH without success
$ LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped) LD_LIBRARY_PATH="/opt/myapp/lib/" /opt/myapp/bin/myexample
How to open my app from .deb?
This is what inside my .deb
$ dpkg-deb -c "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample-0.1.2-Linux.deb"
[image: 32f4f548-d8ed-4a8f-a3a9-c1d61bc782a1.png]
This is my repo (copy). I use last Qt version from git dev branch
$ git log --oneline -1
e5a39cd6 (HEAD -> dev, origin/dev, origin/HEAD) Fix icu provisioning for Debian 11
From your picture I see there're truly no platform plugins. Usually they are under /opt/myapp/plugins/platforms but I didn't see that directory?