Hi,

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.

Regards,


----- Mail original -----
De: "Xuan-Son Vu" <[email protected]>
À: [email protected]
Envoyé: Jeudi 20 Novembre 2014 14:32:18
Objet: [strongSwan-dev] Build StrongSwan for Windows platform using the MinGW 
toolchain

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 . 
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 \ 
--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 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
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev

Reply via email to