Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator online installer for linux: no Qt platform plugin could be initialized

Qt Creator online installer for linux: no Qt platform plugin could be initialized

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 1.8k 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by
    #1

    Hi
    I tried to reinstall Qt Creator on my Debian 10 VM and got this error upon launching the installer:

    buster@buster:~/Downloads$ ./qt-unified-linux-x64-online.run
    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: minimal, xcb.
    
    Aborted
    buster@buster:~/Downloads$ 
    

    The Qt installer complaining that it cannot find a Qt plugin???

    jsulmJ 1 Reply Last reply
    0
    • DiracsbracketD Diracsbracket

      Hi
      I tried to reinstall Qt Creator on my Debian 10 VM and got this error upon launching the installer:

      buster@buster:~/Downloads$ ./qt-unified-linux-x64-online.run
      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      
      Available platform plugins are: minimal, xcb.
      
      Aborted
      buster@buster:~/Downloads$ 
      

      The Qt installer complaining that it cannot find a Qt plugin???

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Diracsbracket said in Qt Creator online installer for linux: no Qt platform plugin could be initialized:

      The Qt installer complaining that it cannot find a Qt plugin???

      Well, it's a Qt app :-)
      Are you running Wayland on your VM?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      DiracsbracketD 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Diracsbracket said in Qt Creator online installer for linux: no Qt platform plugin could be initialized:

        The Qt installer complaining that it cannot find a Qt plugin???

        Well, it's a Qt app :-)
        Are you running Wayland on your VM?

        DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by Diracsbracket
        #3

        Hi @jsulm ,
        Apparenltly yes:

        echo $XDG_SESSION_TYPE
        wayland
        

        I also tried with Gnome Classic desktop, where the above echo returns x11, but still got the same error.

        DiracsbracketD 1 Reply Last reply
        0
        • DiracsbracketD Diracsbracket

          Hi @jsulm ,
          Apparenltly yes:

          echo $XDG_SESSION_TYPE
          wayland
          

          I also tried with Gnome Classic desktop, where the above echo returns x11, but still got the same error.

          DiracsbracketD Offline
          DiracsbracketD Offline
          Diracsbracket
          wrote on last edited by Diracsbracket
          #4

          Found the problem.
          There was still an environment variable set in my .bashrc

          QT_QPA_PLATFORM=wayland 
          

          Removed it and it worked...

          1 Reply Last reply
          2

          • Login

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