curl-library
Re: Has anyone compiled 64-bit libcurl on Windows?
Date: Fri, 29 Apr 2016 19:33:44 -0500
Thank you very much Steve and Henri.
Henri was right in that I was trying to compile libcurl 32-bit and 64-bit
from the same directory without cleaning. How do I clean a curl build
directory? I've just been deleting the whole folder and re-extracting. I
tried this but I just get the help text:
nmake /f Makefile.vc clean
I made my directory structure match my OpenSSL folders while developing
today from this tutorial:
http://developer.covenanteyes.com/building-openssl-for-visual-studio/
It worked! I was able to compile in 64-bit. I moved onto building with
OpenSSL 1.0.2g, which failed to compile because I needed to use the no-asm
flag on the Configure, but I got it working.
I've successfully compiled both 32-bit and 64-bit Curl and OpenSSL. Now to
release my project later this weekend!
Sincerely,
Patrick Seiter /zaɪ tɛr/
> Date: Tue, 5 Apr 2016 16:53:11 -0700
> From: Henri Hein <henri_at_thinair.com>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Has anyone compiled 64-bit libcurl on Windows?
> Message-ID:
> <
CAFxQxOOxNc8YNVynXQEKbZF+TR6CBpiyXQ1pjyDZ71getZSnfQ_at_mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> >From the error message you get, it looks like the linker is trying to
> link your 64-bit DLL with the previously built 32-bit obj files. Did
> you try an 'nmake clean' before making the 64-bit build, or manually
> cleaning the object files out?
>
> I agree with Steve that the Visual Studio project files are the
> simplest to work with, and they do contain configurations for building
> 64-bit DLLs. It's what I use, and I have not had any problems
> building that way, though I build the static library. If you don't
> find the configuration you need, you can create your own ones, by
> tweaking an existing one (I wouldn't try to create one from scratch).
> You can build with the VS project files from the command-line.
>
> HTH,
> - Henri
>
> > Date: Tue, 5 Apr 2016 23:54:51 +0100
> > From: Steve Holme <steve_holme_at_hotmail.com>
> > To: libcurl development <curl-library_at_cool.haxx.se>
> > Subject: RE: Has anyone compiled 64-bit libcurl on Windows?
> > Message-ID: <DUB124-W52EC693391966622156BBB829E0_at_phx.gbl>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > 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
> >
> > On Tue, Apr 5, 2016 at 3:24 PM, Patrick Seiter <patrick.seiter_at_gmail.com>
wrote:
> > > Hello everyone,
> > >
> > > 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 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.
> > >
> > > Sincerely,
> > > Patrick Seiter /zaɪ tɛr/
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-30