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. Are separate builds required for all Linux distributions?
Forum Updated to NodeBB v4.3 + New Features

Are separate builds required for all Linux distributions?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • E Offline
    E Offline
    Elsworth55
    wrote on last edited by
    #1

    I'm new to Linux so I'm not sure about compatibility between different distributions.

    I've found that if I build a statically linked Qt executable on Debian it runs correctly of Mint and Ubuntu. Mint is based on Ubuntu, which itself is based on Debian, so that's probably why that works.

    It is okay to just use one build for all three distributions, or is it best to do a separate build for each one?

    If one build is okay, are there any other situations like Debinan/Ubuntu/Mint where one build will cover multiple distributions?

    Finally, do you need to do new builds of your application for each new major Linux version release? For example, when Debian 9 or Mint 19 are released will I have to do a new build for them or will the current build continue to work?

    I'm a bit of a Linux newbie so I'm not to sure how thing work. Thanks for your help.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mostefa
      wrote on last edited by
      #2

      Hi @Elsworth55

      You can be interested with this article:

      it.toolbox.com/blogs/locutus/will-my-program-work-on-all-linux-distributions-32244

      1 Reply Last reply
      3
      • E Offline
        E Offline
        Elsworth55
        wrote on last edited by
        #3

        I'm relieved to read that I'll only have to do four builds (well, eight with 64bit and 32bit versions).

        Thanks a lot for the information and article.

        E 1 Reply Last reply
        0
        • E Elsworth55

          I'm relieved to read that I'll only have to do four builds (well, eight with 64bit and 32bit versions).

          Thanks a lot for the information and article.

          E Offline
          E Offline
          Eeli K
          wrote on last edited by
          #4

          @Elsworth55 That's an old article and things aren't that simple. There are at least three systems nowadays which try to solve this problem (and some other problems, too): Flatpak, ubuntu snaps and AppImage. Despite of the base distributions and the standard file system organization you can't guarantee that certain libraries are actually installed on the target. And 4x8 is quite much, you have to install 8 distros in some way or another to do the compilation, and the most tedious part is learning each packaging system. It's better to learn only one system and do two compilations, 32 and 64 bits. At the moment Flatpak seems to be the best overall system, ubuntu does good hyping and marketing with their product, and AppImage is the most straightforward way to go. See for example http://www.phoronix.com/scan.php?page=news_item&px=Snaps-v-Flatpaks-Linux-Distros.

          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