I did several projects on Qt Creator and I would like to distribute them in an installable format (in this case, Debian Packages).

More info about my Qt installation (and my system):

  • Qt version 4.8.0 (32 bit)
  • Qt Creator 2.4.1
  • I am running Ubuntu 12.04.

Any help is welcome!

1 Answer 1


I just made my package by following tutorial. I recommend running qmake to create the Makefile, so that you don't run into problems while executing dpkg-buildpackage.


Assuming you have already setup the debian directory in the source code,

  1. Copy the source directory (where the .pro file is) to your Home directory and rename it to yourProjectName_projectVersion.
  2. Open a terminal and execute cd yourProjectName_projectVersion.
  3. Then, execute dh_make -s -c gpl -e yourEmailAddress --createorig
  4. Finally, execute dpkg-buildpackage. You may get something like error exit status 255, if so, check that the tar.xs file in you Home folder matches the file requested by dpkg-buildpackage (check the last lines of the output of dpkg-buildpackage to find out what file wants).

If you seek an easier and faster way, you can use Debreate (I did not test it, so I cannot assure you that it will work).

I hope this helps anyone who wants to distribute their Qt project.

  • 1
    the link is broken, but accessible with wayback machine
    – lena
    Oct 24, 2016 at 7:03
  • 1
    Any newer, more recent solution to this problem?
    – Mercury
    Oct 4, 2020 at 18:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.