Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create .deb package for a Qt project

Is there some sort of an automated way of creating .deb packages from a project.pro file? I tried ubucompilator without much luck. Thanks!

like image 822
Honza Pokorny Avatar asked Jan 12 '10 12:01

Honza Pokorny


People also ask

What tool should you use to install a .deb package file?

Install deb Files Using the GDebi Package Installer GDebi is a simple tool for installing local deb packages. Apart from installing the specified file, it also identifies all the required dependencies and automatically downloads and installs them using apt. Now you can use GDebi for installing deb packages.


2 Answers

Your best bet is to get one of these packages already using qmake with apt-get source and apt-get build-dep, preferably the simplest, copy its debian/ directory, and tweak it to your needs. Here is an overview of what the files under debian/ are for.

like image 157
Tobu Avatar answered Sep 30 '22 17:09

Tobu


You could also use CPack which allows you to produce .deb files. If you are willing to switch to using CMake this process becomes easier. I believe there are tools that can convert a .pro project to a CMake project.

like image 27
Adam W Avatar answered Sep 30 '22 18:09

Adam W