Author Topic: create deb packages from app created with CodeBlocks  (Read 6166 times)

Offline ulrichard

  • Single posting newcomer
  • *
  • Posts: 4
create deb packages from app created with CodeBlocks
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: create deb packages from app created with CodeBlocks
« Reply #1 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]

Offline ulrichard

  • Single posting newcomer
  • *
  • Posts: 4
Re: create deb packages from app created with CodeBlocks
« Reply #2 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

Offline DRON_proger

  • Single posting newcomer
  • *
  • Posts: 7
Re: create deb packages from app created with CodeBlocks
« Reply #3 on: December 17, 2011, 08:27:32 am »
jens
The same problem to me!
Your attachment is deleted, could you upload it again, please?
« Last Edit: December 17, 2011, 08:29:50 am by DRON_proger »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: create deb packages from app created with CodeBlocks
« Reply #4 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
or
http://apt.jenslody.de/downloads/testapp.7z