<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I hit enter too soon, adding some details below -- My apologies</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> stunnel-users <stunnel-users-bounces@stunnel.org> on behalf of Michael Curran <mike_curran@hotmail.com><br>
<b>Sent:</b> Wednesday, November 16, 2016 7:42 AM<br>
<b>To:</b> stunnel-users@stunnel.org<br>
<b>Subject:</b> [stunnel-users] Windows builds</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello --</p>
<p><br>
</p>
<p>Are there some solid instructions for building stunnel on windows? I am using Microsoft VS 2015 and the 64-bit compilers --</p>
<p></p>
<div><br>
</div>
<div><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">I had no issues building Openssl-fips and openssl using the fips modules, but stunnel doesnt appear to find them. </span><br>
</div>
<br>
<p></p>
<p><br>
</p>
<p>This is the basic error I am running into, but could be that stunnel wont work with 64-bit?</p>
<p></p>
<div>C:\stunnel_build\stunnel-5.36.tar\stunnel-5.36\src>.\makew32.bat</div>
<div>W32 ENVIRONMENT OK</div>
<div><br>
</div>
<div>Microsoft (R) Program Maintenance Utility Version 14.00.24210.0</div>
<div>Copyright (C) Microsoft Corporation.  All rights reserved.</div>
<div><br>
</div>
<div>Detected target: win64</div>
<div><br>
</div>
<div>        cl /MD /W3 /O2 /nologo /I"\devel\win64\openssl\include" /DUNICODE /D_UNICODE -Fo..\obj\win64\stunnel.obj -c ..\src\stunnel.c</div>
<div>stunnel.c</div>
<div>c:\stunnel_build\stunnel-5.36.tar\stunnel-5.36\src\common.h(414): fatal error C1083: Cannot open include file: 'openssl/opensslconf.h': No such file or directory</div>
<div>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'</div>
<div>Stop.</div>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
I did adjust the makew32.bat as follows</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>@echo off</div>
<div>TITLE W32 STUNNEL </div>
<div>:: In a multi-target compilation environment, it is better to open</div>
<div>:: a new cmd.exe window in order to avoid PATH pollution</div>
<div>:: (for example with some previous WCE compilation attempts)</div>
<div><br>
</div>
<div>set NEWTGTCPU=W64</div>
<div><br>
</div>
<div>rem Adjust the MS VC environment variables</div>
<div>rem ---------------------</div>
<div><br>
</div>
<div>rem Detect the latest Visual Studio</div>
<div>rem Visual Studio 2008</div>
<div>if DEFINED VS90COMNTOOLS if exist "%VS90COMNTOOLS%..\..\vc\vcvarsall.bat" set vsTools=%VS90COMNTOOLS%</div>
<div>rem Visual Studio 2010</div>
<div>if DEFINED VS100COMNTOOLS if exist "%VS100COMNTOOLS%..\..\vc\vcvarsall.bat" set vsTools=%VS100COMNTOOLS%</div>
<div>rem Visual Studio 2012</div>
<div>if DEFINED VS110COMNTOOLS if exist "%VS110COMNTOOLS%..\..\vc\vcvarsall.bat" set vsTools=%VS110COMNTOOLS%</div>
<div>rem Visual Studio 2013</div>
<div>if DEFINED VS120COMNTOOLS if exist "%VS120COMNTOOLS%..\..\vc\vcvarsall.bat" set vsTools=%VS120COMNTOOLS%</div>
<div>rem Visual Studio 2015</div>
<div>if DEFINED VS140COMNTOOLS if exist "%VS140COMNTOOLS%..\..\vc\vcvarsall.bat" set vsTools=%VS140COMNTOOLS%</div>
<div><br>
</div>
<div>::rem Initialize the Visual Studio tools</div>
<div>::call "%vsTools%..\..\vc\vcvarsall.bat"</div>
<div><br>
</div>
<div>rem Check the MSenv variables against our reference values</div>
<div>set isenvok=0</div>
<div>if NOT DEFINED TARGETCPU set TARGETCPU=XXXXX</div>
<div>if "%NEWTGTCPU%"=="%TARGETCPU%"  set /A "isenvok+=1"</div>
<div><br>
</div>
<div>if %isenvok%==1 echo W32 ENVIRONMENT OK</div>
<div>if %isenvok%==1 goto envisok</div>
<div><br>
</div>
<div>:: Useless with separated target folders</div>
<div>::echo W32 TARGET CPU changed, destroying every obj files</div>
<div>::del .\*.obj</div>
<div><br>
</div>
<div>:: if env is NOT ok, adjust the MS VC environment variables</div>
<div>:: (this is to avoid repetitive pollution of PATH)</div>
<div><br>
</div>
<div>echo W32 ENVIRONMENT ADJUSTED</div>
<div><br>
</div>
<div>:: Reset of INCLUDE is needed because of accumulation of includes in vcvars32</div>
<div><br>
</div>
<div>set INCLUDE=</div>
<div><br>
</div>
<div>call "%vsTools%..\..\vc\bin\amd64\vcvars64.bat"</div>
<div><br>
</div>
<div>set TARGETCPU=%NEWTGTCPU%</div>
<div><br>
</div>
<div>:envisok</div>
<div><br>
</div>
<div>rem Make everything</div>
<div>rem ---------------</div>
<div><br>
</div>
<div>nmake.exe -f vc.mak %1 %2 %3 %4 %5 %6 %7 %8 %9</div>
<div><br>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>