Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: molc on March 22, 2011, 04:21:37 pm

Title: command line c::b project builder for Fedora
Post by: molc on March 22, 2011, 04:21:37 pm
Is there a command line project builder for C::B projects?
One that works fine with Fedora rpmdevtools.
The builder tool should not have GUI requirements.

I'm currently using C::B 10.05 under Fedora 14 i686.
I would like to package my projects without the need to convert the C::B projects to Makefile.
Title: Re: command line c::b project builder for Fedora
Post by: oBFusCATed on March 22, 2011, 06:18:29 pm
There is initial work done in the this branch http://svn.berlios.de/wsvn/codeblocks/branches/codeblocks_console/?#a9d0bd8ef7e401af0a01b460d3e4bea4d
But you still have a dependency on the wxBase, I think.
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 23, 2011, 04:15:50 pm
There is initial work done in the this branch http://svn.berlios.de/wsvn/codeblocks/branches/codeblocks_console/?#a9d0bd8ef7e401af0a01b460d3e4bea4d
But you still have a dependency on the wxBase, I think.

I'll check it. Perhaps it works.
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 23, 2011, 04:31:47 pm
Sorry for my ignorance.

How do I "svn checkout" that?
Title: Re: command line c::b project builder for Fedora
Post by: stahta01 on March 23, 2011, 05:08:26 pm
How do I "svn checkout" that?

Try
Code
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console

Tim S.
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 23, 2011, 06:02:19 pm
Try
Code
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console

It doesn't work.
Title: Re: command line c::b project builder for Fedora
Post by: Jenna on March 23, 2011, 06:05:50 pm
There is initial work done in the this branch http://svn.berlios.de/wsvn/codeblocks/branches/codeblocks_console/?#a9d0bd8ef7e401af0a01b460d3e4bea4d
But you still have a dependency on the wxBase, I think.
You need full blown wxWidgets to build it.
It build the gui and the console part (at the moment).
The console binary (codeblocks_con ) most likely has dependencies on gui-stuff.
At the moment I split some part in base and gui-files, but it's still very hacky and uses a lot of ifdefs.
If all related files are split a reorganisation will come (and also a possibility to build just the console-binary).

Neverthelees it works and can be used from a real console, with no running X-server.
Title: Re: command line c::b project builder for Fedora
Post by: Jenna on March 23, 2011, 06:10:48 pm
Try
Code
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console

It doesn't work.

Do you have svn (commandline version) installed ?
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 23, 2011, 06:25:26 pm
I typed wrong the svn command, I used /wsvn instead of /svnroot/repos in the URL.

Thanks.

Do you plan to include codeblocks_con binary together with the regular codeblocks release?
Title: Re: command line c::b project builder for Fedora
Post by: Jenna on March 23, 2011, 08:56:34 pm
I typed wrong the svn command, I used /wsvn instead of /svnroot/repos in the URL.

Thanks.

Do you plan to include codeblocks_con binary together with the regular codeblocks release?
Yes, if it is ready to be merged with trunk.
But as written this will take some time and it's not top priority.
It can be used as it is, even if it is quiet hacky and the code is really ugly.
And of course there is a "real life" next to C::B that needs some time.
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 24, 2011, 12:28:22 am
The console binary (codeblocks_con ) most likely has dependencies on gui-stuff.
At the moment I split some part in base and gui-files, but it's still very hacky and uses a lot of ifdefs.
If all related files are split a reorganisation will come (and also a possibility to build just the console-binary).

Neverthelees it works and can be used from a real console, with no running X-server.

I built it successfully, I tested it and it works fine when I invoke it in the command line.

But "ldd codeblocks_con" shows some gui libraries linked in.
It will probably be rejected by rpmdevtools even if it needs no running X-server, just because of that library dependency.

The idea is to use codeblocks_con instead of make for a project created with C::B in the rpm build process.

Thank you for your time and efforts.

In the meantime, is there any chance to get cbMakeGen [1] plugin included with src/plugins/contrib?

I tested version 0.3.12.5 building it from source code using CodeBlocks under Fedora 14 with the included .cbp project, and after doing a build and a later restart of CodeBlocks, the plugin becomes active. It generates a clean and nice Makefile that works fine with rpmdevtools.

[1] http://forums.codeblocks.org/index.php/topic,6241.135.html
Title: Re: command line c::b project builder for Fedora
Post by: molc on March 25, 2011, 01:50:48 am
I saw cbp2make in an old thread in this forum, and I tested it.

It works just fine and it fits my needs.

It creates wonderful makefiles for C::B workspaces too, which would allow to package several C::B projects in one rpm.

My congratulations to cbp2make developers.

Sorry for the noise.