cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling libcurl with ssl using mingw

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 27 Jul 2007 15:33:44 +0200

Hi,
beside this good description below its also possible to do it without MSYS and cofigure;
I have f.e. a pre-compiled OpenSSL for MingW32 on my site:
http://www.gknw.net/development/ossl/win32/openssl_mingw32-0.9.8e.zip
extract this, then set an environment var to point to it, f.e.:
set OPENSSL_PATH=c:/mingw32/openssl-0.9.8e
then change to basedir of curl source and type:
make mingw32-ssl

greetz, Guenter.

> This is whay I do to compile curl with ssl support:

> - To compile it you are going to need Perl in your system, for
> whatever the reason
> I couldn't get it to work with the Perl that comes with
> Cygwin, so I had to
> download ActivePerl: http://www.activestate.com.

> - Open a MS-DOS console in the openssl directory and make sure
> that both
> perl and mingw are in you path:

> c:\openssl-0.9.8e\> echo %PATH%

> if they aren't add them:

> c:\openssl-0.9.8e\> PATH=%PATH%;C:\Perl\bin;c:\MinGW\bin

> change the paths if you need to.

> - To compile:

> c:\openssl-0.9.8e\> ms\mingw32.bat

> and hope for the best.

> - After it compiles you have to copy some files around:

> - libcryto.a, libeay32.a, libssl.a and libssl32.a from
> openssl-0.9.8e\out to c:\msys\local\lib.

> - libeay32.dll and libssl32.dll from openssl-0.9.8e to
> c:\msys\local\lib and c:\msys\local\bin.

> - The contents of openssl-0.9.8e\outinc to c:
> \msys\local\include.

> After doing this you only need to configure curl

> -/configue --with-ssl=/usr/local

> Andres
Received on 2007-07-27