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 to deploy/develop a Linux app from windows QT platform?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to deploy/develop a Linux app from windows QT platform?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 4 Posters 1.9k Views 1 Watching
  • 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
    jensen
    wrote on last edited by jensen
    #1

    I've got a system running Linux 18.x but its too slow to develop any app on it. So is it possible to develop a Linux based application using windows QT platform?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to the forums.
      Compiling for another platform on one platform is called cross compiling and
      its often hard to setup.
      But yes it is possible.
      There is also the new linux sub system for windows that might work fine.
      https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

      But if you windows is ok powerful then a virtual machine (virtual box) with a
      linux inside is so much easier.

      JonBJ J 2 Replies Last reply
      2
      • mrjjM mrjj

        Hi and welcome to the forums.
        Compiling for another platform on one platform is called cross compiling and
        its often hard to setup.
        But yes it is possible.
        There is also the new linux sub system for windows that might work fine.
        https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

        But if you windows is ok powerful then a virtual machine (virtual box) with a
        linux inside is so much easier.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @mrjj
        I am interested to know: if/when you have successfully cross-compiled for another platform, can you then set up to use the target linux/win/macdeployqt from the foreign development platform?

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Another possibility is to use Wine on Linux, i.e. you compile/build your program as a normal .exe for Windows, then run it on Wine on Linux.

          1 Reply Last reply
          1
          • mrjjM mrjj

            Hi and welcome to the forums.
            Compiling for another platform on one platform is called cross compiling and
            its often hard to setup.
            But yes it is possible.
            There is also the new linux sub system for windows that might work fine.
            https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

            But if you windows is ok powerful then a virtual machine (virtual box) with a
            linux inside is so much easier.

            J Offline
            J Offline
            jensen
            wrote on last edited by
            #5

            @mrjj Thank you for your help. Can I install QT on windows using windows subsystem for Linux?

            mrjjM 1 Reply Last reply
            0
            • J jensen

              @mrjj Thank you for your help. Can I install QT on windows using windows subsystem for Linux?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @jensen
              Well i have not tried it (i use a virtual machine)
              but with WSL2 supports graphical apps so good chances you can make it work with Creator.
              But you will be able to compile etc for sure as everything command line just works.

              https://ubuntu.com/blog/ubuntu-on-wsl-2-is-generally-available
              https://www.pcworld.com/article/3543763/windows-10-moves-closer-to-true-linux-with-graphical-support-for-wsl2.html

              1 Reply Last reply
              1

              • Login

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