[Ilugc] How to create deb file for Qt based application

prasannatsmkumar prasannatsmkumar at gmail.com
Sun Jul 8 19:49:52 IST 2012


On Sun, Jul 8, 2012 at 5:33 PM, Balachandran Sivakumar
<benignbala at gmail.com> wrote:
> Hi,
>
> On Sun, Jul 8, 2012 at 5:24 PM, prasannatsmkumar
> <prasannatsmkumar at gmail.com> wrote:
>> Hi,
>>
>> I have created an application using Qt framework for ubuntu app
>> showdown. I have hosted it in
>> https://launchpad.net/share-ubuntu-updates. Please let me know how to
>> package it (creating a .deb file). I am very new to creating deb so I
>
>          The Ubuntu packaging guide is located here[1].
>
> [1] https://wiki.ubuntu.com/PackagingGuide/Complete
>
>
> --
> Thank you
> Balachandran Sivakumar
>
> Arise Awake and stop not till the goal is reached.
>                                                              - Swami Vivekananda
>
> Mail: benignbala at gmail.com
> Blog: http://benignbala.wordpress.com/
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Running "debuild" as mentioned in the wiki gives the following error

 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin:
vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package share-updates
dpkg-buildpackage: source version 1.0-1
dpkg-buildpackage: source changed by prasanna <prasannatsmkumar at gmail.com>
 dpkg-source --before-build share-updates-1.0
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
make[1]: Entering directory
`/home/prasanna/Software/Projects/Qt/share-updates-1.0'
rm -f moc_mainwindow.cpp moc_worker.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o worker.o repoinfo.o moc_mainwindow.o moc_worker.o
rm -f *~ core *.core
rm -f Share-Updates
rm -f Makefile
make[1]: Leaving directory
`/home/prasanna/Software/Projects/Qt/share-updates-1.0'
   dh_clean
 dpkg-source -b share-updates-1.0
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building share-updates using existing
./share-updates_1.0.orig.tar.gz
dpkg-source: info: building share-updates in share-updates_1.0-1.debian.tar.gz
dpkg-source: info: building share-updates in share-updates_1.0-1.dsc
 debian/rules build
dh build
   dh_testdir
   dh_auto_configure
   dh_auto_build
make[1]: Entering directory
`/home/prasanna/Software/Projects/Qt/share-updates-1.0'
/usr/bin/uic-qt4 mainwindow.ui -o ui_mainwindow.h
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o
mainwindow.cpp
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o worker.o
worker.cpp
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o repoinfo.o
repoinfo.cpp
repoinfo.cpp: In constructor ‘RepoInfo::RepoInfo()’:
repoinfo.cpp:37:72: warning: format not a string literal and no format
arguments [-Wformat-security]
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. mainwindow.h -o moc_mainwindow.cpp
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o
moc_mainwindow.o moc_mainwindow.cpp
/usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4
-I. -I. worker.h -o moc_worker.cpp
g++ -c -m64 -pipe -g -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT
-DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_worker.o
moc_worker.cpp
g++ -m64 -Wl,-Bsymbolic-functions -o Share-Updates main.o mainwindow.o
worker.o repoinfo.o moc_mainwindow.o moc_worker.o
-L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread
make[1]: Leaving directory
`/home/prasanna/Software/Projects/Qt/share-updates-1.0'
   dh_auto_test
 fakeroot debian/rules binary
dh binary
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installexamples
   dh_installman
   dh_installcatalogs
   dh_installcron
   dh_installdebconf
   dh_installemacsen
   dh_installifupdown
   dh_installinfo
   dh_pysupport
   dh_installinit
   dh_installmenu
   dh_installmime
   dh_installmodules
   dh_installlogcheck
   dh_installlogrotate
   dh_installpam
   dh_installppp
   dh_installudev
   dh_installwm
   dh_installxfonts
   dh_installgsettings
   dh_bugfiles
   dh_ucf
   dh_lintian
   dh_gconf
   dh_icons
   dh_perl
   dh_usrlocal
   dh_link
   dh_compress
   dh_fixperms
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: Depends field of package share-updates:
unknown substitution variable ${shlibs:Depends}
   dh_md5sums
   dh_builddeb
dpkg-deb: building package `share-updates' in
`../share-updates_1.0-1_amd64.deb'.
 dpkg-genchanges  >../share-updates_1.0-1_amd64.changes
dpkg-genchanges: error: badly formed line in files list file, line 1
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 25
debuild: fatal error at line 1348:
dpkg-buildpackage -rfakeroot -D -us -uc failed


More information about the ilugc mailing list