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 create linux packages

How to create linux packages

Scheduled Pinned Locked Moved General and Desktop
linuxinstaller
7 Posts 3 Posters 3.8k Views 2 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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by Ratzz
    #1

    I have a QT GUI based application which is build on windows . I have created a installer package for windows(setup file .exe of QT application) using visual studio which works fine. Since QT is cross platform i want to create a Linux package . My application runs fine on Linux . Now i want to create an setup file for my application. How can i create Linux package? Does the latest version of QT allows to create packages in QT itself?

    --Alles ist gut.

    p3c0P H 2 Replies Last reply
    0
    • RatzzR Ratzz

      I have a QT GUI based application which is build on windows . I have created a installer package for windows(setup file .exe of QT application) using visual studio which works fine. Since QT is cross platform i want to create a Linux package . My application runs fine on Linux . Now i want to create an setup file for my application. How can i create Linux package? Does the latest version of QT allows to create packages in QT itself?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Ratzz Creating a Linux package will depend upon the distro that you have used. For eg. some use .deb some use .rpm. You can use the tools provided by the respective distro to create the packages. Or you can try Open Build Service.
      Another way would be to create a wizard type installer which you have done on windows. Examples would be to use Qt-Installer-Framework or we use Bitrock installBuilder.

      157

      1 Reply Last reply
      0
      • RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @p3c0
        Thanks for the reply .
        I want to create an .rpm package.

        You can use the tools provided by the respective distro to create the packages

        Can you mention some of the links or tool provided by the respective distro?
        I will look into Open Build Service .

        --Alles ist gut.

        p3c0P 1 Reply Last reply
        0
        • RatzzR Ratzz

          @p3c0
          Thanks for the reply .
          I want to create an .rpm package.

          You can use the tools provided by the respective distro to create the packages

          Can you mention some of the links or tool provided by the respective distro?
          I will look into Open Build Service .

          p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Ratzz https://fedoraproject.org/wiki/How_to_create_an_RPM_package

          157

          RatzzR 1 Reply Last reply
          1
          • p3c0P p3c0

            @Ratzz https://fedoraproject.org/wiki/How_to_create_an_RPM_package

            RatzzR Offline
            RatzzR Offline
            Ratzz
            wrote on last edited by
            #5

            @p3c0
            Thanks . I will check and revert back.

            --Alles ist gut.

            1 Reply Last reply
            0
            • RatzzR Ratzz

              I have a QT GUI based application which is build on windows . I have created a installer package for windows(setup file .exe of QT application) using visual studio which works fine. Since QT is cross platform i want to create a Linux package . My application runs fine on Linux . Now i want to create an setup file for my application. How can i create Linux package? Does the latest version of QT allows to create packages in QT itself?

              H Offline
              H Offline
              Huulivoide
              wrote on last edited by
              #6

              There are a few choices you have.

              The proper way would be to write appropriate package control files,
              this way you can build a native installer package that the user can install
              and remove the software trought the native package manager application.
              This does require more work as there are several different distributions
              out there, all of which use different package formats Ubuntu & Debian
              use the .deb archives, Fedora and OpenSuse use .rpm archives and so on.
              This way you can leverage dependency management support of the
              package manager and you don't have top bundle in 200mb of Qt libs
              with your application.

              https://wiki.debian.org/IntroDebianPackaging
              https://fedoraproject.org/wiki/How_to_create_an_RPM_package

              Another choice is to use Makeself to create the installer, but this has the
              downside that you do not get any kind of dependency management and
              you basically have to include every single library your application uses
              within the package. You also need to write a custom installer and uninstaller
              scripts that copy the files over to correct places.

              RatzzR 1 Reply Last reply
              1
              • H Huulivoide

                There are a few choices you have.

                The proper way would be to write appropriate package control files,
                this way you can build a native installer package that the user can install
                and remove the software trought the native package manager application.
                This does require more work as there are several different distributions
                out there, all of which use different package formats Ubuntu & Debian
                use the .deb archives, Fedora and OpenSuse use .rpm archives and so on.
                This way you can leverage dependency management support of the
                package manager and you don't have top bundle in 200mb of Qt libs
                with your application.

                https://wiki.debian.org/IntroDebianPackaging
                https://fedoraproject.org/wiki/How_to_create_an_RPM_package

                Another choice is to use Makeself to create the installer, but this has the
                downside that you do not get any kind of dependency management and
                you basically have to include every single library your application uses
                within the package. You also need to write a custom installer and uninstaller
                scripts that copy the files over to correct places.

                RatzzR Offline
                RatzzR Offline
                Ratzz
                wrote on last edited by
                #7

                @Huulivoide
                Thanks for the reply.
                Now i am trying Qt-Installer-Framework . Will also look into package manager you have provide.
                I have looked into some methods to create a package both in windows and Linux such as cavapackager , installjammer.
                In installjammer i get application installed but cannot find its path. moreover same project files are copied to installed path of .exe file (all .ccp and .h files).
                In cavapackager i am confused how to use and install citrus perl .

                --Alles ist gut.

                1 Reply Last reply
                0

                • Login

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