User forums > General (but related to Code::Blocks)
create deb packages from app created with CodeBlocks
(1/1)
ulrichard:
Hi,
I switched to linux half a year ago, and created my new app cross platform with CodeBlocks.
The installer for windows was easy, but I want to also create a debian package for ubuntu and possibly also an rpm for suse.
For that I read some docs on how to create debinan packages. I found the process rather complicated, and it seemed it's based on a regular makefile or an automake file. None of which I found in my CodeBlocks project folder.
Does someone have experience on how to build a binary deb package of a program created with CodeBlocks?
Would be nice if someone could explain the process.
Thanks
Richard
Jenna:
No time to explain it.
Maybe I will create a wiki-article sometimes, but if I do so it will surely not be in the next few weeks, sorry.
I thought about developping a plugin, that creates the files needed to build deb-packages, but as written before, I have very few time at the moment.
But it's not so hard to do this manually.
I attach a simple example, based on the skeleton created by dh_make.
To unpack it you need "7z" (.bz2 and .gz files are not allowed as attachments).
Just type
--- Code: ---7za x -so testapp.tar.7z | tar xf -
--- End code ---
--- Code: ---cd testapp-0.1
--- End code ---
--- Code: ---dpkg-buildpackage
--- End code ---
[attachment deleted by admin]
ulrichard:
Hi Jens,
thanks for the example.
I'm still fighting the details, but your example was a good start.
The rest that I have to sort out has more to do with the deb package itself than with codeblocks.
Rgds
Richard
DRON_proger:
jens
The same problem to me!
Your attachment is deleted, could you upload it again, please?
Jenna:
--- Quote from: DRON_proger on December 17, 2011, 08:27:32 am ---jens
The same problem to me!
Your attachment is deleted, could you upload it again, please?
--- End quote ---
All attachements will be deleted from time to time to save space.
Here it is:
http://apt.jenslody.de/downloads/testapp.tar.bz2
or
http://apt.jenslody.de/downloads/testapp.7z
Navigation
[0] Message Index
Go to full version