PDA

View Full Version : creating a deb package



wambagilles
13th July 2011, 21:52
hello, i recently started writing programs for linux, still i have a proble; i would like to deploy my program as a .deb package, but iam totally lost, it is so different with the system of dll on windows! please i need help, first knowing dependencies of my Qt programm, and secondly making a deb package for it...

Talei
14th July 2011, 02:32
It's not so different on Linux, I mean creating .msi is not so trivial task also.
Basically .deb package is equivalent to windows .msi file and .so libraries on Linux are "same as" .dll files (Shared_libraries (http://en.wikipedia.org/wiki/Library_%28computing%29#Shared_libraries)).

How to create deb... well use google and type something along these lines: "how to create deb package" : (link1 (http://ubuntuforums.org/showthread.php?t=2356), link2 (http://www.debian.org/doc/manuals/maint-guide/))

To check what dependences program needs use "ldd progName" see i.e. this (http://serverfault.com/questions/54736/how-to-check-if-a-library-is-installed)

wambagilles
14th July 2011, 07:30
thanks for your answer, instructions on the link1 are very easy, and i like it, but, first off all, after 'make' in my source directory, i can not 'make install'

gilles@gilles-K50AF:~/Patriott_sources$ sudo make install
[sudo] password for gilles:
make: Nothing to be done for `install'.

how can i come about this?

Talei
14th July 2011, 09:12
According to the information in that post (I didn't done this myself) you need use

sudo checkinstall
instead of "sudo make install".

wambagilles
14th July 2011, 15:01
According to the information in that post (I didn't done this myself) you need use

sudo checkinstall
instead of "sudo make install".

this seems perfect, and it creates the debian package and install, but the program is nowhere in my installed program, are there some configuration i need to do to the C++/Qt sources before? or anything else i have not done?

Talei
15th July 2011, 06:45
Search for the directory name or application name because probably package name is named after that (or simply search package name).
Btw. this has probably nothing to do with Qt and is tool specific. You can create .deb with other tools as well, refer to distribution manual.