Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
Qt 6.11 is out! See what's new in the release blog

CPack. qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 46 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DungeonLords
    wrote last edited by DungeonLords
    #1

    I can run my app by name (type this in console)

    "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample"
    

    alt text
    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"
    

    61c61c13-a7e9-4d38-85a0-66608872e813-image.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
    
    JonBJ 1 Reply Last reply
    0
    • D DungeonLords

      I can run my app by name (type this in console)

      "$HOME/Ubuntu_Wayland_Build_Qt_widgets/example/build-host/myexample"
      

      alt text
      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"
      

      61c61c13-a7e9-4d38-85a0-66608872e813-image.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
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote last edited by
      #2

      @DungeonLords
      I don't know anything about your situation with "app"s and "deb packs". But for further diagnostics as to where exactly Qt is looking for what when it issues those "Could not find the Qt platform plugin" messages you might get some extra information if you first

      export QT_DEBUG_PLUGINS=1
      

      in the shell before running your program.

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @DungeonLords
        I don't know anything about your situation with "app"s and "deb packs". But for further diagnostics as to where exactly Qt is looking for what when it issues those "Could not find the Qt platform plugin" messages you might get some extra information if you first

        export QT_DEBUG_PLUGINS=1
        

        in the shell before running your program.

        D Offline
        D Offline
        DungeonLords
        wrote last edited by
        #3

        @JonB this doesn't add any new message. Or probably I use this wrong way?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved