cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Building curl-7.17.1 on x64 Windows

From: Andriy Y <registeronsite_at_gmail.com>
Date: Thu, 24 Jun 2010 22:41:53 +0200

I have x64 compilers and stuff. I've described the problem in another branch
here on this newsgroup, briefly I have a compilation error. So, I was
thinking mb I do something wrong or I missed a step somewhere.

Andrey

On Thu, Jun 24, 2010 at 10:31 PM, Zhang, Jack
<jack.zhang_at_credit-suisse.com>wrote:

> I use Windows 7 Professional 64-bit to compile x64 curl. if you choose
> WinXP x64, to my feeling, all steps should be the same.
>
> if you use WinXP x86, when you install VS 2008, all 64-bit libraries
> will not be installed. (x64 or ia64). so you cannot compile any 64-bit
> application.
>
> -Jack
>
> ------------------------------
> *From:* curl-library-bounces_at_cool.haxx.se [mailto:
> curl-library-bounces_at_cool.haxx.se] *On Behalf Of *Andriy Y
> *Sent:* Thursday, June 24, 2010 16:17
> *To:* libcurl development
> *Subject:* Re: Building curl-7.17.1 on x64 Windows
>
> Could you explain, how did you build the curl for x64 architecture on
> Windows ? Please, specify steps to do.
> I'm experiencing problem compiling libcurl for x64, host OS is WinXP x86.
>
> Andrey
>
> On Thu, Jun 24, 2010 at 10:11 PM, Zhang, Jack <
> jack.zhang_at_credit-suisse.com> wrote:
>
>> I built 7.20 successfully for both x86 and x64 on Windows 7 professional
>> X64 with Visual Studio 2008 Professional Edition.
>>
>> Also built the latest 7.21.0 for x86 on Windows XP Professional (with
>> Service Pack 3), and 64-bit on Solaris 8 (Sun Sparc) with Sun Studio 12
>>
>> curl --version
>> ------------------------------------------------------------------------
>> ----------
>> curl 7.21.0 (i386-pc-win32) libcurl/7.21.0 OpenSSL/0.9.8l zlib/1.2.3
>> libssh2/1.2.2
>> Protocols: dict file ftp ftps http https imap imaps ldap pop3 pop3s rtsp
>> scp sftp smtp smtps telnet tftp
>> Features: AsynchDNS Largefile NTLM SSL libz
>>
>> $curl --version
>> ------------------------------------------------------------------------
>> -----------------
>> curl 7.21.0 (sparc-sun-solaris2.8) libcurl/7.21.0 OpenSSL/0.9.8l
>> zlib/1.2.3 libssh2/1.2.2
>> Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3
>> pop3s rtsp scp sftp smtp smtps telnet tftp
>> Features: IPv6 Largefile NTLM SSL libz
>>
>>
>> First, I compiled OpenSSL, zlib, libssh2 from source code.
>>
>> Then compile curl with OpenSSL, zlib, libssh2.
>>
>> On Windows, just upgrade VC6 workspace to VC9 solution following the
>> wizard in VS2008. then
>>
>> 1. open libcurl project property.
>>
>> Under C/C++ ---> Preprocessor, give these values:
>> WIN32;NDEBUG;BUILDING_LIBCURL;USE_SSLEAY;USE_OPENSSL;USE_LIBSSH2;HAVE_LI
>> BSSH2_H;HAVE_ZLIB_H;HAVE_LIBZ
>>
>> Linker --->Input, give these values
>> ws2_32.lib wldap32.lib libssh2.lib zlib1.lib libeay32.lib ssleay32.lib
>>
>> 2. open curlsrc project property.
>>
>> Under C/C++ ---> Preprocessor, give these values: (I did not change it)
>> WIN32;NDEBUG;_CONSOLE
>>
>> Linker --->Input, give these values
>> libcurl_imp.lib ws2_32.lib wldap32.lib
>>
>> Make sure in VS 2008 ---
>> Tools/Options/Projects and Solutions/VC++ Directories/Includes files
>> Tools/Options/Projects and Solutions/VC++ Directories/Library files
>>
>> Have all correct paths pointing to OpenSSL, zlib, libssh2
>>
>> Then, it is ready to go compiling.
>>
>> Hope above information can help you ,
>>
>> For x64, you just need to change Target platform from win32 to x64,
>> recompile OpenSSL, zlib, libssh2, then curl.
>>
>> -Jack
>>
>> -----Original Message-----
>> From: curl-library-bounces_at_cool.haxx.se
>> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Vlado Pjesivac
>> Sent: Thursday, June 24, 2010 15:34
>> To: curl-library_at_cool.haxx.se
>> Subject: Building curl-7.17.1 on x64 Windows
>>
>> Hello everyone,
>>
>> I am trying to build curl 7.17.1 on windows 64 bit.
>> The problem is when I build using vcproj I get a different library as
>> 64 bit then the one I get when i use make file for vc6.
>>
>> I am trying to build it with SSL.
>>
>> Is there a way to build it on 64 bit windows using visual studio 2008.
>>
>> This version?
>>
>> What I work on (in 32 bit world is using 7.17.1 and thats why i need
>> 64 bit version of 7.17.1)
>>
>>
>> Any suggestions?
>>
>>
>> V
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>>
>> ===============================================================================
>> Please access the attached hyperlink for an important electronic
>> communications disclaimer:
>> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>>
>> ===============================================================================
>>
>> -------------------------------------------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-library
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
>
>
> --
> Best regards,
> Andrey Yanov
>
>
> ==============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
> ==============================================================================
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-- 
Best regards,
Andrey Yanov

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-24