Author Topic: command line c::b project builder for Fedora  (Read 9002 times)

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
command line c::b project builder for Fedora
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: command line c::b project builder for Fedora
« Reply #1 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.
(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!]

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #2 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.

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #3 on: March 23, 2011, 04:31:47 pm »
Sorry for my ignorance.

How do I "svn checkout" that?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: command line c::b project builder for Fedora
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #5 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: command line c::b project builder for Fedora
« Reply #6 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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: command line c::b project builder for Fedora
« Reply #7 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 ?

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #8 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: command line c::b project builder for Fedora
« Reply #9 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.

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #10 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

Offline molc

  • Single posting newcomer
  • *
  • Posts: 7
Re: command line c::b project builder for Fedora
« Reply #11 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.