<div dir="ltr">Hi there,<div><br></div><div>I am compiling StrongSwan 5.21 for windows using the MingGW toolchain but it won't work. Is there anything I do wrong? Here is what I did:</div><div><br></div><div>1. Firstly I follow the official instruction <a href="https://wiki.strongswan.org/projects/strongswan/wiki/Windows">here</a>.</div><div>2. For compiling OpenSSL, I followed the official instruction <a href="https://github.com/openssl/openssl/blob/master/INSTALL.W64">here </a>to have the openssl lib. I put the openssl lib in C:\usr\local\ssl. My MingW is in C:\MingW. Then I have my configuration as following:</div><div><br></div><div><div>./configure --disable-defaults --enable-monolithic --enable-static \</div><div>--enable-svc --enable-ikev2 --enable-ikev1  \</div><div>--enable-nonce --enable-pem --enable-pkcs1 \</div><div>--enable-x509 --enable-openssl --enable-socket-win \</div><div>--enable-kernel-wfp --enable-kernel-iph --enable-pubkey \</div><div>--enable-swanctl --with-swanctldir=swanctl \</div><div>--with-strongswan-conf=strongswan.conf \</div><div>--host=x86_64-w64-mingw32 \</div><div> CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format -mno-ms-bitfields -I/C:/usr/local/ssl/include" \</div><div> LDFLAGS="-L/C:/usr/local/ssl/lib" --prefix=/usr/local/myStrongSwan</div></div><div><br></div><div>Or even when I replace <b>C:</b> by <b>c</b> the problem is the same: </div><div><div><br></div><div><b>checking for Windows target... yes</b></div><div><b>checking for working __attribute__((packed))... yes</b></div><div><b>checking clang... no</b></div><div><b>checking for main in -leay32... no</b></div><div><b>configure: error: OpenSSL libeay32 not found</b></div></div><div><br></div><div><br></div><div>3. I found <a href="https://wiki.strongswan.org/issues/751">this issue</a> is similar to my problem but I haven't found anything different with mine so far. And also, the issue was solve `magically` so I didn't know what do I need to change.</div><div><br></div><div>Any idea would be appreciate,</div><div><br></div><div>Thank you in advance.</div></div>