<div dir="ltr"><div dir="ltr">The "./configure" step should have told you about any problems.<br><div>What does it say?</div><div><br></div><div>We run with Openssl installed (as documented) in c:/OpenSSL-Win64</div><div>I don't know if '--with-ssl' flag is used for the windows build or not?<br><br></div><div>The configure "hacks" to support windows are intricate in crypto so there</div><div>might be problems there, as I said we only test the way it was documented.</div><div><br></div><div>And send a PR with any fix to the crypto configure test if you find improvement</div><div>possibilities. :-)<br></div><div><br></div><div>/Dan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 9, 2020 at 8:04 AM Matt Myers <<a href="mailto:matt.myers.real@gmail.com">matt.myers.real@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>I've been able to successfully build Erlang from master (OTP 24 rc0) on Windows, but the crypto module is always failing (see note below).<br></div><div>I've built OpenSSL 1.1.1g successfully, and a test application built in C works OK.</div><div><br></div><div>Would it be possible to get the config options used in building the official Windows release of Erlang? Or where can I go to find that?<br></div><div>Maybe there is something simple that I'm missing.</div><div><br></div><div>Here are the options I'm using:</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace">--host=win32<br>--enable-sctp<br>--enable-smp-support<br>--enable-threads<br>--enable-builtin-zlib<br>--enable-dynamic-ssl-lib<br>--with-ssl=/c/build/openssl/release/1.1.1g<br>--disable-hipe<br>--disable-kernel-poll<br>--disable-fp-exceptions<br>--without-javac<br>--with-wxdir=/c/opt/local64/pgm/wxWidgets-3.1.3/lib/vc_x64_lib</span><br></blockquote></div><div><br></div><div>
Also, I must say, building on Windows seems much improved from previous OTP versions. The fact that Visual Studio 2019 is working is a big help. Many thanks to whoever did that!

</div><div><br></div><div>Thanks and best regards,</div><div>Matt<br></div><div><br></div><div>Errors when trying to start crypto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Eshell V11.0.2  (abort with ^G)<br>1> crypto:start().<br>=ERROR REPORT==== 8-Jun-2020::11:01:05.121000 ===<br>Unable to load crypto library. Failed with error:<br>"load_failed, Failed to load NIF library c:/Program Files/erl-24.0-rc0-e/lib/crypto-4.7/priv/lib/crypto: 'The specified module could not be found.'"<br>OpenSSL might not be installed on this system.<br><br>=WARNING REPORT==== 8-Jun-2020::11:01:05.168000 ===<br>The on_load function for module crypto returned:<br>{error,{load_failed,"Failed to load NIF library c:/Program Files/erl-24.0-rc0-e/lib/crypto-4.7/priv/lib/crypto: 'The specified module could not be found.'"}}<br><br>** exception error: undefined function crypto:start/0</div></blockquote></div>
</blockquote></div></div>