cURL / Mailing Lists / curl-library / Single Mail


Re: Curl, Openssl and Makefile.m32

From: Guenter Knauf <>
Date: Thu, 6 Sep 2007 02:28:15 +0200

> I have been using curl for a while now and I have recently come into the
> need to use an ssl libary in conjunction with it so I decided to re-build
> curl with openssl. However, I'm getting some errors which have been
> stomping
> me for a while now in the: makefile -f Makefile.m32 SSL=1 part of the
> build.
> I'm using windows xp sp2. I would use dev ( but I don't know how
> to
> specify the SSL=1 within the GUI. Here is a copy of the (from the last
> part
> of the build), error I'm getting from dos prompt:
first please read the ./docs/INSTALL file's MingW32 section.
Then if you have build openssl 0.9.8e self with MingW32 everything is at the right place if you place the whole dir at same level as curl itself, f.e.:
           \ curl-7.16.4
           \ openssl-0.9.8e

If you dont have build openssl self, you can obtain pre-compiled versions from my site:

Dont mess up with GUIs for compiling libcurl, just use a cmd box (lauch from 'execute' -> cmd).
Then create a batch file which should look like this (adjust paths for your environment):
@echo off
set PATH=c:\mingw32\bin;%PATH%
REM set LIBSSH2_PATH=c:/projects/mingw32/libssh2-0.17
set OPENSSL_PATH=c:/projects/mingw32/openssl-0.9.8e
set ZLIB_PATH=c:/projects/mingw32/zlib-1.2.3

unless you use a daily snapshot (where this dependency is removed) you will also need to point to zlib with 7.16.4 release.

cd to the curl basedir, call the above batch inside the cmd box, then type:
mingw32-make mingw32-ssl

that builds both the libcurl and curl binaries.

This is how the makefiles are intended to work;
if you now prefer to use a GUI for your own coding its up to you to learn how to tell the GUI where to find the libs for linking - you need to point somehow to the curl lib folder, and in addition to the openssl out folder...

HTH, Guenter.
Received on 2007-09-06