cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Compiling libcurl with ssl using mingw

From: <FANDOM_at_telefonica.net>
Date: Fri, 27 Jul 2007 12:05:42 +0200 (MEST)

Hi,

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