How to create a Debian source package with Qt Creator?
Solution 1:
It's very hard to tell from your question what you already know, so I assume that you:
- can program
- in C++
- with Qt widgets / the QT framework.
As far as I know, the QT Creator is not able to create debian packages to submit to the Ubuntu Software Center.
QT Creator is able to create debian packages for Maemo5 (see here). Looking through the discussions on Maemo, it seemes that this process is not easily changeable, but maybe you can start from there.
If you are not fixated on QT Creator, you can simply use it to create you code and then follow the Ubuntu Packaging Guide to create your debian package.
The actual submission to the Software Center is described here.
For future questions I would suggest you write in more detail what your actual problem is.
Solution 2:
You can do this with an additional rule in the makefile generated by qmake:
Write a shell script
my_package_script.sh
that creates the package.-
In your .pro file, add this:
mypackagerule.target = mypackagerule mypackagerule.command = exec my_package_script.sh QMAKE_EXTRA_TARGETS += mypackagerule
Now you can create your package calling make mypackagerule
. In Qt Creator, you can do that by adding a new (Make) compilation step in the Project tab.