[smartmontools-support] Compiling smartctl on Windows
Eaton Zveare
eatonzveare at gmail.com
Wed Apr 27 19:50:49 CEST 2022
Oops! That sounds like the issue. Thanks.
I think I am almost in a good state now. I ran into this error with an
MSYS2 (no Visual Studio) build when running the binary on Windows 7:
https://i.imgur.com/bu1o8RE.png
Works fine on Windows 11. Is there something I am missing that needs to be
specified for older OS versions?
On Wed, Apr 27, 2022 at 1:36 PM Christian Franke <
Christian.Franke at t-online.de> wrote:
> Eaton Zveare wrote:
> > Yes, you are right, config.h inside os_win32\vc16 has those defines
> > commented out.
> > Despite that, the build fails. It appears VS 2022 is referencing the
> > config.h from the root folder instead of the one inside vc16.
> > In the Solution Explorer, the config.h file there is the vc16 version,
> > so I'm not sure why it's using the other one in the root.
> > When I replace the root config.h with the vc16 copy, it fixes the
> > problem right away.
>
> Did you possibly run ./configure instead of ../configure? If yes, there
> is also config.log and a Makefile in the root folder (aka $srcdir).
>
> See INSTALL file:
> The configure script must be run outside of the source directory to
> avoid inclusion of the original config.h.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20220427/d4f879fd/attachment-0001.htm>
More information about the Smartmontools-support
mailing list