[Nut-upsuser] NUT Two Apc UPSes on Windows

Rafał Pawłaszek rafal.pawlaszek at gmail.com
Thu Mar 29 11:26:32 UTC 2012


Hi,

I managed to configure the windows_port, but it crashes while make command
with error:

In file include from libusb.h:35:0,
                      from libhid.h:45,
                      from usbhid-ups.c:33:
usb-common.h:25:19: fatal error: regex.h: No such file or directory

Now, what I did:

1. I use mingw shell (there's also msys shell, but it doesn't work. I don't
know why it's there, then).
2. mingw-get update shows available packages, and it's easy to single out
the ones needed in the configuration.
3. In windows_port I run
         autoconf
and after it crashed I entered
         autoreconf -f -i -Wall,no-obsolete
4. Next, when the configure file appeared I typed in automake, but there
was no scripts/augeas/nutupsconf.aug.in present.
5. Using IronPython (I guess any implementation is good) I run
scripts/augeas/gen-nutupsconf-aug.py and automake run properly
6. As I wanted only the usb support I typed in
         configure --prefix="C:\\Program Files\\NUT-2.6.3" --without-serial
--enable-static --disable-shared --with-usb
but libusb is absent in mingw, so following
http://tomeko.net/other/avrdude/building_avrdude.php
I downloaded the 1.2.4 version and placed the files in the mingw path.
Strangely though, going to /include in MinGW shell and listing header files
I cannot see usb.h, but after this step configure run properly.
7. and here is when make crashed. in /include I've got only regexp.h and
haven't found any useful site yet.

Do You know how to overcome this?
Rafał
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120329/a816b008/attachment.html>


More information about the Nut-upsuser mailing list