Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Is it possible install Qt creator in wsl?

Is it possible install Qt creator in wsl?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 4 Posters 17.0k 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.
  • J Offline
    J Offline
    Jed208
    wrote on 19 Jul 2022, 08:57 last edited by
    #1

    Im new in ubuntu, actually im a student. (If i write something weird is because i speak spanish, im learning english)
    So, i trying to install Qt Creator in Windows Subsystem Linux, but i cant find the right way to do it. I have tried in different ways but always get error:
    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" OR
    qt.qpa.plugin: Could not load the Qt platform plugin "xcb"
    Seriously I'm very new, if you decide to help me, I would appreciate it if you took it into account.

    J 1 Reply Last reply 19 Jul 2022, 09:07
    1
    • J Offline
      J Offline
      JKSH
      Moderators
      wrote on 19 Jul 2022, 09:06 last edited by
      #2

      Hi @Jed208, and welcome!

      The old WSL doesn't have a GUI, so no you can't run Qt Creator there.

      However, it might work if you have WSL2 with WSLg enabled: https://www.nextofwindows.com/wslg-is-microsofts-offical-gui-for-wsl2

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      3
      • J Jed208
        19 Jul 2022, 08:57

        Im new in ubuntu, actually im a student. (If i write something weird is because i speak spanish, im learning english)
        So, i trying to install Qt Creator in Windows Subsystem Linux, but i cant find the right way to do it. I have tried in different ways but always get error:
        qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" OR
        qt.qpa.plugin: Could not load the Qt platform plugin "xcb"
        Seriously I'm very new, if you decide to help me, I would appreciate it if you took it into account.

        J Offline
        J Offline
        JonB
        wrote on 19 Jul 2022, 09:07 last edited by JonB
        #3

        @Jed208
        Hello and welcome.

        There are so many possibilities for this error message we cannot guess which situation you might be in. It probably indicates you have not installed something required for xcb in your Linux. If you search this forum or Google for Could not load the Qt platform plugin "xcb" you will get many hits to have a look through. You may want to start from a shell typing

        export QT_DEBUG_PLUGINS=1
        /path/to/your/executable
        

        and examine the diagnostic output for a hint.

        UPDATE
        I hid this reply when @JKSH said WSL won't allow GUI. Now that @cristian-adam seems to say it is possible, i have restored for your consideration.

        J 1 Reply Last reply 20 Jul 2022, 15:11
        1
        • C Online
          C Online
          cristian-adam
          wrote on 19 Jul 2022, 10:43 last edited by
          #4

          Here is Qt Creator 6.0.2 running on WSL2 on Windows 11 Arm64:

          alt text

          1 Reply Last reply
          3
          • J JonB
            19 Jul 2022, 09:07

            @Jed208
            Hello and welcome.

            There are so many possibilities for this error message we cannot guess which situation you might be in. It probably indicates you have not installed something required for xcb in your Linux. If you search this forum or Google for Could not load the Qt platform plugin "xcb" you will get many hits to have a look through. You may want to start from a shell typing

            export QT_DEBUG_PLUGINS=1
            /path/to/your/executable
            

            and examine the diagnostic output for a hint.

            UPDATE
            I hid this reply when @JKSH said WSL won't allow GUI. Now that @cristian-adam seems to say it is possible, i have restored for your consideration.

            J Offline
            J Offline
            JKSH
            Moderators
            wrote on 20 Jul 2022, 15:11 last edited by
            #5

            @JonB said in Is it possible install Qt creator in wsl?:

            I hid this reply when @JKSH said WSL won't allow GUI. Now that @cristian-adam seems to say it is possible, i have restored for your consideration.

            Only for Windows 11, at this stage.

            For Windows 10, it's currently only available on Preview/Dev builds: https://www.windowscentral.com/windows-10-build-21364-now-rolling-out-insiders-dev-channel

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            2
            • J Offline
              J Offline
              Jed208
              wrote on 21 Jul 2022, 17:35 last edited by
              #6

              I see, thanks everyone, i didn espect so much help.

              1 Reply Last reply
              0

              3/6

              19 Jul 2022, 09:07

              • Login

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