<div dir="ltr">Hi, after spending some time getting smartctl compilable on my Windows 11 machine, I have run into problems and must ask for some assistance in getting a proper build environment set up.<div><br><div>I have read the "Guidelines for Windows" section in the INSTALL file. I installed MSYS2, did their 2-step package update commands, and installed mingw-w64-x86_64-toolchain. In other words, everything under the Installation section here: <a href="https://www.msys2.org/">https://www.msys2.org/</a></div><div><br></div><div>I then installed these additional packages via this command: <i>pacman -S make autoconf autogen automake</i></div></div><div><i><br></i></div><div>I then copied the latest smartmontools source (the SVN copy) to here: <i>C:\msys64\home\Eaton</i></div><div>Start the "MSYS2 MinGW x64" shell and run these commands:</div><div><ol><li><i>./autogen.sh</i></li><li><i>./configure</i></li><li><i>make</i></li></ol></div><div>That gets me a smartctl.exe, but it's 6.4 MB, more than 6x larger than the official build. I suspect it was compiled in debug mode, but it's not clear how to specify release/production mode.</div><div>This leads to my questions:</div><div><ol><li>How do I compile in release/production mode?</li><li>How do I compile the "smartctl-nc" version of the exe?</li><li>I also tried getting this working in Visual Studio, but running the <i>config-vc14</i> (or vc16) command does not work. It says <i>No rule to make target</i>. Visual Studio is my preferred environment, so if you could provide updated instructions for getting a build environment set up in that, it would be appreciated.</li></ol><div>Thanks!</div></div></div>