Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ulrichard on December 14, 2008, 11:19:20 pm

Title: create deb packages from app created with CodeBlocks
Post by: ulrichard on December 14, 2008, 11:19:20 pm
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
Title: Re: create deb packages from app created with CodeBlocks
Post by: Jenna on December 15, 2008, 01:28:49 am
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 -
Code
cd testapp-0.1
Code
dpkg-buildpackage

[attachment deleted by admin]
Title: Re: create deb packages from app created with CodeBlocks
Post by: ulrichard on December 24, 2008, 09:17:57 am
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
Title: Re: create deb packages from app created with CodeBlocks
Post by: 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?
Title: Re: create deb packages from app created with CodeBlocks
Post by: Jenna on December 17, 2011, 09:17:52 am
jens
The same problem to me!
Your attachment is deleted, could you upload it again, please?
All attachements will be deleted from time to time to save space.
Here it is:
http://apt.jenslody.de/downloads/testapp.tar.bz2 (http://apt.jenslody.de/downloads/testapp.tar.bz2)
or
http://apt.jenslody.de/downloads/testapp.7z (http://apt.jenslody.de/downloads/testapp.7z)