Author Topic: How to use distcc with C::B?  (Read 5644 times)

Sorcerer

  • Guest
How to use distcc with C::B?
« on: February 04, 2006, 09:58:39 am »
Hello, i tried to use distcc with Codeblocks and I find no way to get it work.
I like to use the managed Projects and because of that i don't no how to
set the number of jobs distcc should use. (the -j parameter of make)
So my Question is: Is it possible to use distcc with CB's managed Projects?
If yes: How?



Offline dwmcqueen

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: How to use distcc with C::B?
« Reply #1 on: January 05, 2007, 10:23:32 pm »
Has anyone successfully done this?  I can see the benefit since my development is on a laptop, but I have a whole host of servers laying around doing nothing....

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How to use distcc with C::B?
« Reply #2 on: January 05, 2007, 10:42:44 pm »
Take a look at this recent topic. It's about ccache but the concept remains the same...
Be patient!
This bug will be fixed soon...

Offline dwmcqueen

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: How to use distcc with C::B?
« Reply #3 on: January 05, 2007, 11:24:17 pm »
Wouldn't it be cleaner to create a new Compiler profile (such as "MinGW with DistCC") that uses distcc?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: How to use distcc with C::B?
« Reply #4 on: January 06, 2007, 11:39:05 am »
Wouldn't it be cleaner to create a new Compiler profile (such as "MinGW with DistCC") that uses distcc?
Sure. Make a copy of the MinGW compiler, create the batch file(s) as proposed in the other thread and setup the programs accordingly. Can be done in less than a minute... ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dwmcqueen

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: How to use distcc with C::B?
« Reply #5 on: January 08, 2007, 07:03:00 pm »
Of course, that is assuming there is a distcc port to MinGW ;)  As far as I know, distcc needs some hacking to work there...

Offline dwmcqueen

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: How to use distcc with C::B?
« Reply #6 on: January 10, 2007, 04:24:57 pm »
I think that is a good short-term solution.  But I'd really like to see a "Distributed Compiling" option - sort of along the lines of what Xcode has (and Xcode uses a patched distcc to do this).