<div>Hi,</div><div> </div><div>I managed to configure the windows_port, but it crashes while make command with error:</div><div> </div><div>In file include from libusb.h:35:0,</div><div> from libhid.h:45,</div>
<div> from usbhid-ups.c:33:</div><div>usb-common.h:25:19: fatal error: regex.h: No such file or directory</div><div> </div><div>Now, what I did:</div><div> </div><div>1. I use mingw shell (there's also msys shell, but it doesn't work. I don't know why it's there, then).</div>
<div>2. mingw-get update shows available packages, and it's easy to single out the ones needed in the configuration.</div><div>3. In windows_port I run </div><div> autoconf</div><div>and after it crashed I entered</div>
<div> autoreconf -f -i -Wall,no-obsolete</div><div>4. Next, when the configure file appeared I typed in automake, but there was no scripts/augeas/<a href="http://nutupsconf.aug.in">nutupsconf.aug.in</a> present.</div>
<div>5. Using IronPython (I guess any implementation is good) I run scripts/augeas/gen-nutupsconf-aug.py and automake run properly</div><div>6. As I wanted only the usb support I typed in</div><div> configure --prefix="C:\\Program Files\\NUT-2.6.3" --without-serial --enable-static --disable-shared --with-usb</div>
<div>but libusb is absent in mingw, so following <a href="http://tomeko.net/other/avrdude/building_avrdude.php">http://tomeko.net/other/avrdude/building_avrdude.php</a></div><div>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.</div>
<div>7. and here is when make crashed. in /include I've got only regexp.h and haven't found any useful site yet.</div><div> </div><div>Do You know how to overcome this? </div><div>Rafał</div>