Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: DRON_proger on December 17, 2011, 08:31:59 am

Title: How can I create deb package of my project?
Post by: DRON_proger on December 17, 2011, 08:31:59 am
I am not very familiar with Linux, but I have created good crossplatform game and ported it succesfully to linux using C::B.
Now I am planning to upload it to Ubuntu Software Center, so I must create deb package.
I go through tutorials but I need to have makefiles  :(
So is there any way to create signed deb package from already compiled binary or force C::B to generate make files and other stuff needed for debuild. Or at least prepare already compiled application for packaging using dpkg-deb –build.
I am stucked  and need help :'(
Title: Re: How can I create deb package of my project?
Post by: Jenna on December 17, 2011, 09:17:23 am
You don't need makefiles for debuild.
You can work with C::B directly, if you can create the packages with a running xserver.
I have a very simple testapp on my server for download, that shows, how it can be done:
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)

Otherwise you have to used a selfcompiled C::B for console. There exists a branch for it on svn.
Code
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console .
http://forums.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848 (http://forums.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848)

To create makefiles from C::B projects you can use cbp2make : http://forums.codeblocks.org/index.php/topic,13675.0.html (http://forums.codeblocks.org/index.php/topic,13675.0.html) .
I never used it myself.
Title: Re: How can I create deb package of my project?
Post by: DRON_proger on December 17, 2011, 09:46:43 am
Thanx a lot!  ;D
Title: Re: How can I create deb package of my project?
Post by: DRON_proger on December 17, 2011, 02:35:46 pm
I have error after executing $ dpkg-buildpackage, window with message "The project file does not exists..." sevral times. In C::B all builds correct.
I am running Ubuntu x64.

P.S.
Also may be it is possible to make deb without having sources, but with already compiled application? It could be the good solution for me.
Title: Re: How can I create deb package of my project?
Post by: Jenna on December 17, 2011, 03:07:45 pm
I have error after executing $ dpkg-buildpackage, window with message "The project file does not exists..." sevral times. In C::B all builds correct.
I am running Ubuntu x64.

P.S.
Also may be it is possible to make deb without having sources, but with already compiled application? It could be the good solution for me.
I just tested my test-project without any changes and it works flawlessly (except for some warning messages).

Debian unstable/experimental 64bit.
Title: Re: How can I create deb package of my project?
Post by: DRON_proger on December 17, 2011, 03:09:18 pm
Ok, I'll try it under x32.
Title: Re: How can I create deb package of my project?
Post by: Jenna on December 17, 2011, 03:23:27 pm
Ok, I'll try it under x32.
Why ?
It should work on 32 and 64-bit.
And as I wrote, I use it on a 64bit system, too.

Can you give me the exact steps you made (and paste the error messages her in code-tags) ?
Title: Re: How can I create deb package of my project?
Post by: DRON_proger on December 18, 2011, 01:39:17 pm
My steps are:
$ cd '/home/dron/testapp-0.1'
$ dpkg-buildpackage
And yes, it's builds under Ubuntu x32, but failes under ubuntu x64 with message box I described in previous post :(
Title: Re: How can I create deb package of my project?
Post by: Jenna on December 18, 2011, 02:11:16 pm
[...] with message box I described in previous post :(

[..] (and paste the error messages her in code-tags) ?

Do what I write, or there is no way to help you.

Just copy and paste the whole console-output, if you run dpkg-buildpackage, including the commandline.
Title: Re: How can I create deb package of my project?
Post by: DRON_proger on December 19, 2011, 08:36:02 am
Well, ok. The problem was that under x64 there were spaces in the file path.
Now all ok, thank you for help.