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 do I make a .deb Package ending in Qt C ++
Forum Updated to NodeBB v4.3 + New Features

How do I make a .deb Package ending in Qt C ++

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++
21 Posts 3 Posters 7.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.
  • R Offline
    R Offline
    Renn
    wrote on last edited by
    #1

    Hello, I am still confused to make the extension .deb package, is there any who would help me to solve this problem?

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

      Hi,

      You should read the debian packaging documentation . Note that if you plan to distribute your app like this, you shouldn't need to add Qt to it's content. Make Qt a dependency of your package. So it gets download when you install your application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        You should read the debian packaging documentation . Note that if you plan to distribute your app like this, you shouldn't need to add Qt to it's content. Make Qt a dependency of your package. So it gets download when you install your application.

        R Offline
        R Offline
        Renn
        wrote on last edited by
        #3

        @SGaist The point? I do not understand.

        R 1 Reply Last reply
        0
        • R Renn

          @SGaist The point? I do not understand.

          R Offline
          R Offline
          raf924
          wrote on last edited by raf924
          #4

          @Renn To make a deb package (or other packages) easily for a C++ program/lib, I would recommend the use of CPACK, which can be used with or without CMAKE. See there : https://cmake.org/Wiki/CMake:Packaging_With_CPack, https://cmake.org/Wiki/CMake/CPackExample, https://cmake.org/Wiki/CMake:CPackPackageGenerators

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            My point was that if you are trying to provide packages for debian/debian derived OS, you can use its dependencies system and avoid installing an additional Qt version since it's generally already installed on these system. If not, adding to your package that it requires Qt will make it ask the package manager to install it. Also if you provide your own copy of Qt you need to put it somewhere safe that won't risk to break the system of your software users.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply
            0
            • SGaistS SGaist

              My point was that if you are trying to provide packages for debian/debian derived OS, you can use its dependencies system and avoid installing an additional Qt version since it's generally already installed on these system. If not, adding to your package that it requires Qt will make it ask the package manager to install it. Also if you provide your own copy of Qt you need to put it somewhere safe that won't risk to break the system of your software users.

              R Offline
              R Offline
              Renn
              wrote on last edited by
              #6

              @SGaist What should I do to make a debian package of qt my project?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                What build system are you using ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                R 1 Reply Last reply
                0
                • SGaistS SGaist

                  What build system are you using ?

                  R Offline
                  R Offline
                  Renn
                  wrote on last edited by
                  #8

                  @SGaist The point?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    cmake has cpack that offers support to generate deb files with qmake you have to do some more work

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    R 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      cmake has cpack that offers support to generate deb files with qmake you have to do some more work

                      R Offline
                      R Offline
                      Renn
                      wrote on last edited by
                      #10

                      @SGaist Oh so, if they have to wear cmake, how the tutorial?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        Follow the cpack deb documentation here

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        R 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Follow the cpack deb documentation here

                          R Offline
                          R Offline
                          Renn
                          wrote on last edited by
                          #12

                          @SGaist
                          Instead it only explanation alone is not a tutorial? Is there anything else? for example in a video tutorial?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            You also have the CPack Generators page

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            R 1 Reply Last reply
                            0
                            • SGaistS SGaist

                              You also have the CPack Generators page

                              R Offline
                              R Offline
                              Renn
                              wrote on last edited by
                              #14

                              @SGaist Instead it only explanation alone is not a tutorial? Is there anything else? for example in a video tutorial?

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                Unless you are doing something particular, you have two variables to fill: the package author and dependencies. The rest is handled for you, you just need to call make package and cmake will handle the building of the deb file for.

                                If you need more information, then please contact the cmake people.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                R 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  Unless you are doing something particular, you have two variables to fill: the package author and dependencies. The rest is handled for you, you just need to call make package and cmake will handle the building of the deb file for.

                                  If you need more information, then please contact the cmake people.

                                  R Offline
                                  R Offline
                                  Renn
                                  wrote on last edited by
                                  #16

                                  @SGaist How so? should contact the cmake? I was just asking about the tutorial for a link that you give me not understand the explanation, I doubt even start. Does it start from the .pro file, or the result of a build? etc. And there does not exist an explanation must begin where.

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    First: please do your homework. A quick search with cmake as keyword in Qt's documentation returns just that: the CMake manual for Qt. Once you have your project to build, then you can add the packaging stuff.

                                    To contact the cmake folks you have either their mailing list or the #cmake IRC channel.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    R 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      First: please do your homework. A quick search with cmake as keyword in Qt's documentation returns just that: the CMake manual for Qt. Once you have your project to build, then you can add the packaging stuff.

                                      To contact the cmake folks you have either their mailing list or the #cmake IRC channel.

                                      R Offline
                                      R Offline
                                      Renn
                                      wrote on last edited by
                                      #18

                                      @SGaist You do not know what I mean? I asked if there is a video tutorial that cmake or not.

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        http://bfy.tw/2YcK

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        R 1 Reply Last reply
                                        0
                                        • SGaistS SGaist

                                          http://bfy.tw/2YcK

                                          R Offline
                                          R Offline
                                          Renn
                                          wrote on last edited by
                                          #20

                                          @SGaist It links what? It seems there is no tutorial video content.

                                          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