News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to use distcc with C::B?

Started by Sorcerer, February 04, 2006, 09:58:39 AM

Previous topic - Next topic

Sorcerer

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?



dwmcqueen

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....

mandrav

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...

dwmcqueen

Wouldn't it be cleaner to create a new Compiler profile (such as "MinGW with DistCC") that uses distcc?

MortenMacFly

Quote from: dwmcqueen 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?
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dwmcqueen

Of course, that is assuming there is a distcc port to MinGW ;)  As far as I know, distcc needs some hacking to work there...

dwmcqueen

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).