The past few days I have been trying, without success, to create a deb package for a programme with a Qt interface. The previous steps I have done so far:
- Created a gpg key and registered it at Launchpad;
- Identified myself with the
DEBEMAIL
andDEBFULLNAME
variables in~/.bashrc
; - Checked out the source code from GitHub;
- Successfully built the programme (it uses
qmake
to generate aMakefile
), identifying all its dependencies; - Created a source folder including the
Makefile
, plus a.desktop
file and an.xpm
icon. - Created a tarball from this folder named packagename-version.tar.gz.
With this preparatory work I have tried to follow two different guides:
The official Ubuntu packaging guide - it concludes successfully, but the final
.deb
file only includes thedoc
folder.A more detailed guide from xpressrazor - which fails when running
debuild
, with the following cryptic messages:make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -D -us -uc failed
These and other guides out there invariably present simple examples where the programme to package is composed by a single source file (sometimes it is only a bash script). I suspect they are too simplistic for a proper programme with an elaborate GUI. In this case, what are the precise steps from dh_make
onwards?
Update I: I posted to PasteBin an anonymised version of the full debuild
output.
Update II: The debuild output, now with DH_VERBOSE=1
.
export DH_VERBOSE=1
uncommented or add it if is not in thedebian/rules
files. The build fails atdh_auto_configure
step. exactly trying to runqmake -makefile -nocache ...
. You may also try running that command directly to see if it will raise some errors.qmake
is simply printing the help page and quitting without executing (I get the same in the command line). If there is aMakefile
present already, why isqmake
being run again?qmake
is failing: no.pro
file is given in that long command.CMake
, would you try withdh
andCMake
instead ofcdbs
?