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 :'(
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.
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console .
http://forums.next.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848 (http://forums.next.codeblocks.org/index.php/topic,14402.msg96848.html#msg96848)
To create makefiles from C::B projects you can use cbp2make : http://forums.next.codeblocks.org/index.php/topic,13675.0.html (http://forums.next.codeblocks.org/index.php/topic,13675.0.html) .
I never used it myself.
Thanx a lot! ;D
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.
Quote from: 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.
I just tested my test-project without any changes and it works flawlessly (except for some warning messages).
Debian unstable/experimental 64bit.
Ok, I'll try it under x32.
Quote from: DRON_proger on December 17, 2011, 03:09:18 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) ?
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 :(
Quote from: DRON_proger on December 18, 2011, 01:39:17 PM
[...] with message box I described in previous post :(
Quote from: jens on December 17, 2011, 03:23:27 PM
[..] (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.
Well, ok. The problem was that under x64 there were spaces in the file path.
Now all ok, thank you for help.