View Full Version : create deb from c++

December 31st, 2006, 11:30 AM
I have been writing a c++ program that is in one file, program.cpp. Now i would like to create a deb from it. Could anyone tell me how to do this?

Lord Illidan
December 31st, 2006, 11:35 AM
Never done it myself, but google found this link


December 31st, 2006, 11:39 AM

If it's just one file, why not distribute the source? Compiling one file isn't that hard, even for an absolute beginner, it's just a matter of cut-and-paste.

December 31st, 2006, 11:46 AM
The reason why I don't want to do that is because in the future it will grow to a number of files. On the other side it isn't a bad idea to know how to make debs.

December 31st, 2006, 12:29 PM
I have tried out that tutorial now, and it seems as if I have to write my own makefile...
any ideas?

December 31st, 2006, 03:52 PM
ok, created a makefile by now and got a lot further. The following error occurs when I do "debuild -us -uc"

tar: -: file name read contains nul character
dpkg-deb: building package `testprog' in `../testprog_1.0.0_all.deb'.
dpkg-genchanges: error: badly formed line in files list file, line 1

December 31st, 2006, 04:28 PM
Problems solved, in the meantime anyway :)

June 5th, 2008, 03:43 PM
How did you solve the :
dpkg-genchanges: error: badly formed line in files list file, line 1


June 2nd, 2009, 04:29 PM
I figured out that I was getting the error because of a bad section field under debian/control