[Nagiosplug-devel] Building on windows?

Andreas Ericsson ae at op5.se
Tue May 18 13:01:24 CEST 2010

On 05/18/2010 10:24 AM, Michael Medin wrote:
> 2010-05-18 06:03 Thomas Guyot-Sionnest skrev:
>> I would guess you will need at the very least Cygwin or Mingw32 for
>> building even if the final binaries are meant to run stand-alone. I have
>> no real experience in compiling under windows but if you can come up
>> with patches or specific issues regarding windows compatibility I will
>> be glad to help getting it fixed in mainline.
> Humm...
> Does this mean there is no interest in making using "platform
> independent" code (which does not require cygwin and such libraries).

I'm handling a lot of similar issues in libgit2. It's ok so long as you
don't have to fiddle with process duplication issues.

> Also a platform independent build system would, I guess, be preferable
> to "configure" as well.

GNU Make can be used for that, so long as we just decide on a supported
compiler. Most likely that will be visual studio c++ express, which, to
the best of my knowledge, has command-line support.

> I am relaying heavily on boost and cmake for NSCP in an attempt to make
> it plattform independent and was considering something along those
> lines. But as the code is much integrated it is, I guess, a lot of work
> to base (with patches) any work on the code as is.
> But I really think such changes need to come from "within" and not from
> "outside" (as they often require structural changes) so if there is no
> interest I think it will not be a beneficial effort.
> The reason this question "pops up" is that I was considering adding your
> plugins to NSCP.

I think that would be extremely difficult, since the local checks mostly
spawn unix-specific utilities to do the heavy lifting for them.

Rewriting the necessary ones from scratch, using windows specific api's,
seems like a far better idea.

Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

More information about the Devel mailing list