News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

command line c::b project builder for Fedora

Started by molc, March 22, 2011, 04:21:37 PM

Previous topic - Next topic

molc

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.

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

molc

Quote from: 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.

I'll check it. Perhaps it works.

molc

Sorry for my ignorance.

How do I "svn checkout" that?

stahta01

Quote from: molc on March 23, 2011, 04:31:47 PM
How do I "svn checkout" that?

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

molc

Quote from: stahta01 on March 23, 2011, 05:08:26 PM
Try
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console

It doesn't work.

Jenna

Quote from: 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.
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.

Jenna

Quote from: molc on March 23, 2011, 06:02:19 PM
Quote from: stahta01 on March 23, 2011, 05:08:26 PM
Try
svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console

It doesn't work.

Do you have svn (commandline version) installed ?

molc

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?

Jenna

Quote from: 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?
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.

molc

Quote from: jens on March 23, 2011, 06:05:50 PM
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.next.codeblocks.org/index.php/topic,6241.135.html

molc

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.