[strongSwan-dev] Build StrongSwan for Windows platform using the MinGW toolchain
emeric.poupon at stormshield.eu
Thu Nov 20 15:06:37 CET 2014
The generated "config.log" file may contain some valuable information in order to understand what is wrong.
You will find the compiler command that made the test fail and its output.
----- Mail original -----
De: "Xuan-Son Vu" <sonvx.coltech at gmail.com>
À: dev at lists.strongswan.org
Envoyé: Jeudi 20 Novembre 2014 14:32:18
Objet: [strongSwan-dev] Build StrongSwan for Windows platform using the MinGW toolchain
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 .
2. For compiling OpenSSL, I followed the official instruction here 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 \
CFLAGS="-g -O2 -Wall -Wno-pointer-sign -Wno-format-security -Wno-format -mno-ms-bitfields -I/C:/usr/local/ssl/include" \
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 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.
Dev mailing list
Dev at lists.strongswan.org
More information about the Dev