[strongSwan-dev] Build StrongSwan for Windows platform using the MinGW toolchain

Xuan-Son Vu sonvx.coltech at gmail.com
Thu Nov 20 14:32:18 CET 2014


Hi there,

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:

1. Firstly I follow the official instruction here
<https://wiki.strongswan.org/projects/strongswan/wiki/Windows>.
2. For compiling OpenSSL, I followed the official instruction here
<https://github.com/openssl/openssl/blob/master/INSTALL.W64>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:

./configure --disable-defaults --enable-monolithic --enable-static \
--enable-svc --enable-ikev2 --enable-ikev1  \
--enable-nonce --enable-pem --enable-pkcs1 \
--enable-x509 --enable-openssl --enable-socket-win \
--enable-kernel-wfp --enable-kernel-iph --enable-pubkey \
--enable-swanctl --with-swanctldir=swanctl \
--with-strongswan-conf=strongswan.conf \
--host=x86_64-w64-mingw32 \
 CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format
-mno-ms-bitfields -I/C:/usr/local/ssl/include" \
 LDFLAGS="-L/C:/usr/local/ssl/lib" --prefix=/usr/local/myStrongSwan

Or even when I replace *C:* by *c* the problem is the same:

*checking for Windows target... yes*
*checking for working __attribute__((packed))... yes*
*checking clang... no*
*checking for main in -leay32... no*
*configure: error: OpenSSL libeay32 not found*


3. I found this issue <https://wiki.strongswan.org/issues/751> 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.

Any idea would be appreciate,

Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20141120/ca03beb3/attachment.html>


More information about the Dev mailing list