-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build is obsolete #1050
Comments
The plan is quite latent and currently lower in priority than many other things to rectify first, for the available team members, sadly... (that said, help and PRs would be welcome!) There are numerous issues to be found in github history and perhaps some more in mailing lists, but the gist of it is that latest Windows builds were done as a branch from 2.6.5 baseline, and later main-branch releases diverged significantly so that getting a Windows build ability on top of current code would be a new effort at best inspired by comparisons of those branches vs. main-line 2.6.5 release. I suppose compilers, headers and third-party deps available in Windows have marched on significantly as well. Notably, if the new effort were to concentrate on recent Windows releases and require WSL2 or at least shell tools usable for configure/make logic, it might be easier than a fully-native build with older Windows versions. |
It would be really nice to have a windows port of NUT. |
I do not disagree, but it was not a priority so I did not even get a system
set up for that although I intended to, for a year. So... PRs welcome ;)
Branch based on NUT release 2.6.5 should be there, but I suppose it would
not be an easy merge with modern master, and might refer to compiler/tools
versions no longer relevant. But really, I didn't try yet so may be it is
not all that sad.
Jim
…On Wed, Dec 1, 2021, 23:22 Orion Poplawski ***@***.***> wrote:
It would be really nice to have a windows port of NUT.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1050 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMPTFDEYW4DUPD7OTWRX7LUO2N2RANCNFSM47DB5STQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Agreed this would also be great. I can't get it working on my machine and not many docs out there for troubleshooting. |
This comment was marked as duplicate.
This comment was marked as duplicate.
There are a few quirks due to changes done in Windows over the years. Here is a short writeup how to get NUT-Installer-2.6.5-6 properly working on Windows 11 64-bit: nut.conf ups.conf upsd.users upsd.conf upsmon.conf Change all NOTIFY to EXEC for example: Open a new admin prompt and run: Now test to disconnect line power, you should see messages in all windows and a popup, and after low bat the computer should shut down) Close all windows and start the service, check event viewer - applications |
See also #5 that coordinates (sort of) the effort to modernize NUT for Windows support. Might try a build of that branch. Packages not pursued yet, caveats / incomplete code are known (many listed in Project https://github.com/orgs/networkupstools/projects/2/views/1 made just for tracking all that) See also #455 and #534 for discussion of similar issues (and some solutions) |
FYI: To experiment with recent NUT codebase built (not packaged or otherwise integrated so far) for Windows you can try archives from https://ci.appveyor.com/project/nut-travis/nut/build/artifacts |
I could use some help in following this...
|
At the moment I can only elaborate on point (3) generally, as I haven't had practical experience with NUT 2.6.5 based MSI's and what the programs there can do. Normally NUT has 3 layers - one or more drivers running on a system, a data server (upsd) which represents them all via network protocol, and local or remote clients. One of such clients is upsmon that can handle shutdowns, alerts, etc. Generally any client greater than the read-only The setup you seem to describe involves a driver and data server running on Windows (and maybe an upsmon watching for shutdowns of that Windows box, if it is fed by the UPS it monitors), and a separate Home Assistant with which you want to just watch the UPS state but not shut down HA. So on the Windows side, prepare the driver in On HA side, if it runs NUT upsmon - in its config set |
...and there are no build instructions for windows.
The software works (with the openssl libraries manually copied in the right place) but it lacks the features/fixes of the newer source code.
Any plan to update them or give proper instructions on how to build under windows?
The text was updated successfully, but these errors were encountered: