Unsolved How do I make a .deb Package ending in Qt C ++
-
Hello, I am still confused to make the extension .deb package, is there any who would help me to solve this problem?
-
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.
-
@SGaist The point? I do not understand.
-
@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
-
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.
-
@SGaist What should I do to make a debian package of qt my project?
-
What build system are you using ?
-
@SGaist The point?
-
cmake has cpack that offers support to generate deb files with qmake you have to do some more work
-
@SGaist Oh so, if they have to wear cmake, how the tutorial?
-
Follow the cpack deb documentation here
-
@SGaist
Instead it only explanation alone is not a tutorial? Is there anything else? for example in a video tutorial? -
You also have the CPack Generators page
-
@SGaist Instead it only explanation alone is not a tutorial? Is there anything else? for example in a video tutorial?
-
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.
-
@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.
-
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.
-
@SGaist You do not know what I mean? I asked if there is a video tutorial that cmake or not.
-
-
@SGaist It links what? It seems there is no tutorial video content.