cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Has anyone compiled 64-bit libcurl on Windows?

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Tue, 5 Apr 2016 23:54:51 +0100

On Tue, 5 Apr 2016, Patrick Seiter wrote:

> After many Google searches and many attempts at building, I am
> officially flummoxed trying to build 64-bit libcurl for Windows. I
> finished the code for my project months ago, but I need to distribute
> both 32 and 64-bit copies for release. Here's the StackOverflow
> question I made on the issue:
>
> http://stackoverflow.com/questions/35398914/how-do-i-build-libcurl-for-64-bit-windows-in-using-visual-studio-2010

I personally don't take part on stackoverflow as I have struggled with the constraints and limitations on the very few replies and suggestions I have made there but I will endeavour to read your post.

> I don't want to spam copypasta for my first post to the reading list,
> but I can copy output as needed here. Eventually I'll want to build
> OpenSSL and zlib into this, but one step at a time.

You have several choices for building under Windows with 32-bit and 64-bit support:

* Native Visual Studio project files - In my opinion this is the simplest method and these can be found in curl\projects for VC6 to 14 and support a number of 32-bit and 64-bit configurations supporting static and dynamic builds and libraries such as Windows SSl, OpenSSL, wolfSSL and libssh2. Unfortunately they don't support zlib at present.

* cmake - I don't know too much about libcurls support for cmake. I have used it on other projects but don't know how extensive the configurations are for libcurl.

* Visual Studio nmake via the curl\winbuild makefiles. These are probably the most extensive way to compile under Windows but can be a bit cumbersome especially if you are working with curl source code on a regular basis.

* Visual Studio nmake via the older makefile.vc makefiles - My Windows autobuilds on the development page use these but these can be more cumbersome that the winbuild makefiles.

* Borland make - Useful if you use Borland but again I don't know how extensive the support here is.

* The Linux based configure scripts using platforms such as Cygwin and MSys - Ideal for those who are familiar with Linux based environments.

* Pre-built binaries available from the downloads page - limited configurations available.

Kind Regards

Steve
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-06