Co-compiling with Zlib and SSL under Windows Libcurl

Source: Internet
Author: User

After downloading Curl 7.37, there are various versions vs corresponding project files in project, we choose the appropriate open can compile, according to the different project configuration output the desired library, such as can switch a variety of SSL libraries, dll/lib,debug/release and so on.

However, these project configurations are not zlib and inconvenient. and the official website of the install document Http://curl.haxx.se/docs/install.html, is also a simple explanation of how to use the MSVC command line to compile libcurl and zlib, or Libcurl and OpenSSL, the original text as follows:

   If you want to compile with zlib support, you'll need to build   zlib (http://www.gzip.org/zlib/) as well. Please read the zlib   documentation "on" to compile zlib. Define the Zlib_path environment   variable to the location of Zlib.h and Zlib.lib, for example:     set zlib_path=c:\z lib-1.2.8 then   run ' nmake vc-zlib ' in Curl ' s root directory.

So I need libcurl under Windows with zlib and SSL support? method is available, please check the winbuild/build. WINDOWS.txt, which describes the detailed compilation options. Finally, summarize the steps:
1. Compile the zlib and put the header and generated library files into D:/deps/include and D:/deps/lib respectively
2.CD Curl-src\winbuild
3.nmake/f makefile.vc mode=dll with_devel=d:/deps with_zlib=dll enable_winssl=yes DEBUG=no

Co-compiling with Zlib and SSL under Windows Libcurl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.