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. How to buil distribution for linux on windows?
QtWS25 Last Chance

How to buil distribution for linux on windows?

Scheduled Pinned Locked Moved Solved General and Desktop
distributionlinuxwindows 7
4 Posts 4 Posters 1.5k 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.
  • S Offline
    S Offline
    Sushant21
    wrote on 4 Mar 2017, 15:04 last edited by
    #1

    [Newcomer] I have developed software in qt on windows and i have successfully developed distribution for windows (setup.exe) using inno compiler, but i dont get how to build for linux in windows.

    Thanks in advaance

    J 1 Reply Last reply 6 Mar 2017, 05:44
    0
    • O Offline
      O Offline
      openhs
      wrote on 4 Mar 2017, 15:53 last edited by
      #2

      The best way is to distribute the source code in a form of single .tar.gz file. It is the most common way of distributing software on Linux platform. Your application would have to be open source licensed of course. Creating .tar.gz. file is similar to creating a .zip file only you use 'tar' command for it. Search "how to create tarball" or "tar for windows".

      If interested, Linux distributions will pick up your .tar.gz file, create distribution specific packages out of it and include it in their repositories. Linux users then will be able to find it in the corresponding software repository and easily install it how they are used to.

      Alternatively there are also modern ways of distributing packages via Flatpak (flatpak.org) or Snappy (snapcraft.io). These are not so common yet but are rising on popularity.

      If you do not want to distribute source code then you may install Linux in a virtual machine and build your distribution there or try search for "cross-compiling on windows for linux".

      1 Reply Last reply
      2
      • S Sushant21
        4 Mar 2017, 15:04

        [Newcomer] I have developed software in qt on windows and i have successfully developed distribution for windows (setup.exe) using inno compiler, but i dont get how to build for linux in windows.

        Thanks in advaance

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 6 Mar 2017, 05:44 last edited by
        #3

        @Sushant21 While it is possible to cross compile on Windows for Linux I would not do that. It is not easy to set-up.
        It is much easier to set-up Linux (for example in a virtual machine as @openhs suggested) and build there.

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

        1 Reply Last reply
        1
        • C Offline
          C Offline
          cfdev
          wrote on 6 Mar 2017, 07:52 last edited by
          #4

          The best way and easier is to compile your program into a virtual machine (https://www.virtualbox.org/)

          1 Reply Last reply
          0

          4/4

          6 Mar 2017, 07:52

          • Login

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